Want to avoid the Web.UI.Page lifecycle for Ajax requests

D

DotNetNewbie

Hi,

I am implement ajax in a web application, and I want to avoid having
to go through the entire asp.net page lifecycle since I will be simply
return back html/xml, and I have no need of the .net page lifecycle
events.

What do you suggest is the best way of doing this?

I am thinking I could put all ajax related code in a seperate folder
like:

/wwwroot/web/
/wwwroot/web/callbacks/ <---- contains the .aspx pages that will
return back the html or xml from Ajax calls.


I guess my only choice is to create a HttpModule? How would I do it
so it only fires for ajax calls? Would I just override the begin
request even then?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top