473,396 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Use standard ASPX page as a HTTP handler

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
Nov 17 '05 #1
0 894

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Stanislav Ostachevski | last post by:
Hello, My app needs to map calls to "virtual files" to ASPX parametrized pages, without showing user actual page address. I.e, I want to catch calls to...
10
by: moondaddy | last post by:
I'm writing an ecommerce app in asp.net/vb.net and need to make the pages searchable and crawlable by spiders, particularly Google's. As far as I know, if my pages's contents are mostly populated...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
6
by: Frankie | last post by:
What would it take to send a page to a browser - and the HTML that comprises that "page" is 100% generated dynamically? Specifically, say I have all of the requisite HTML in a string variable....
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.