views:

49

answers:

2

Hello, I am trying to make use of jQueryUI AJAX tabs in my ASP.Net Webforms project.

I have come up against a wall though. For AJAX, you must render only a partial page(no <html> and such elements) by an external URL. How would you best do this in ASP.Net? aspx files require things like a <html> and <head> tag so those wouldn't work so the only thing that comes to mind is using cumbersome ashx files. Am I just over thinking this? Is there an easier way?

Edit: So apparently <html> and such tags are not actually required. So what differences are there to rendering without the full page headers? Will some controls not work? Why wouldn't they?

+2  A: 

There's no reason your .aspx pages have to have <html> tags.

Just go ahead and build .aspx pages with the content you want on them and point your jQuery UI tabs to each URL and it will wire up nicely.

hunter
A: 

ASP.Net does not require any particular HTML tags.
You can make a partial page as an ASPX that includes whatever you want. (Although some server-side controls might not work)

In fact, you can even make an ASPX page that renders aribtrary (non-XML) plain text.

SLaks