Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protection of specific files in local
Message
From
11/07/2006 05:29:36
 
 
To
10/07/2006 13:57:26
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01133718
Message ID:
01135238
Views:
17
This message has been marked as the solution to the initial question of the thread.
Hi,
>>I saw that Rick had also suggested your own HTTPHandler and I'm sure a handler factory is the ideal way to go - but you could just check the handler type and only pass the request to your framework if it's an ASPX page (or other type of interest).
>
>Yes, I would prefer that. But, even if I could find a way to have this GetType() working in VB.NET, by only passing an aspx page to the framework, I would still have the problem of the Redirect not being applicable to the PreRequestHandlerExecute() event.
>>
For the GetType() problem try something like:
Dim o As Object = Context.Handler
Dim h As Object = o.GetType()
Anyway, here's a link to simple creation of custom httphandlers (and factories):
http://msdn2.microsoft.com/en-us/library/ms227439(d=ide).aspx

HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform