Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protection of specific files in local
Message
From
12/07/2006 12:52:40
 
 
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:
01135765
Views:
20
>Pity VB needs to be so verbose<s>. But you can get rid of the first three lines:
>
>If (CType(Context.Handler, Object)).GetType().ToString() = "System.Web.HttpForbiddenHandler" Then
>
Yes, it could be done like that but I try to avoid overcrowding the lines as this allows me to expand the code much easily when needed. It is also much simpler for a beginner to understand, which is one of my goals as soon as I have finished my job and someone else at the company took over the support of the application.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform