Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Use standard ASPX page as a HTTP handler

Reply
Thread Tools

Use standard ASPX page as a HTTP handler

 
 
Michael
Guest
Posts: n/a
 
      08-03-2003
Hi

I would like to use an existing ASPX page as a HTTP handler so that I
can do something like this....

<system.web>
<httpHandlers>
<add verb="*" path="Global.aspx" type="MyApp.Web.scripts.Global,
MyApp.web/>
</httpHandlers>
</system.web>

Where Global.aspx is a standard 'Web Form' created in the vs.net
designer

I have tried this and it does execute the code in the code behind but
it doesn't initialise or render any of the controls on the aspx page
(even runat=server). Clearly I am missing something.

It seems to me that this would be an elegant way to create a 'Global'
Aspx page that could be referenced from multiple paths within a
virtual directory without duplication or the use of parent paths. I
have tried other approaches such as using the
Application_BeginRequest to do a RewritePath but ran into a lot of
problems e.g. use of query string data + inabilty to look at User
Authentication within Application_BeginRequest.

Any help appreciated

Michael Dausmann
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I change the response URL to http://server/page.XLS instead of http://server/page.ASPX ? guillermojco@gmail.com ASP .Net 3 04-26-2007 04:49 AM
How to enter to .aspx page by http connection using http POST request farazkazmi@gmail.com Java 6 08-29-2005 02:58 PM
adding main.aspx.vb & main.aspx.resx under aspx John M ASP .Net 1 05-29-2005 09:27 PM
How to Pass values between from a popup page aspx & a normal page aspx Marco Antonio Montalvo Durán ASP .Net 2 01-23-2004 09:35 PM
How do I post data from aspx page to another aspx page. Sriram Mallajyosula ASP .Net 1 11-05-2003 04:48 PM



Advertisments