Hi Tiraman,
From your description, you'd like to referece the current processing Web
Request's Context in asp.net application so as to retrieve the
ServerVariables from the Request object, yes?
I think the HttpContext.Current member in ASP.NET is the one you need, it
provide the reference to the current ASP.NET request's Context and it has
many members such as Request, Response. Session, Server...
You can view the following weblink for detailed reference:
#HttpContext.Current Property
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebHttpContext
ClassCurrentTopic.asp?frame=true
So we can use the
HttpContext.Current.Request.ServerVariables to get ServerVariables
Also, the ASP.NET has its own Authentication and Authorization mechinasm
different from
classic ASP , here are some further references on ASP.NET's Authentication
and Authorization:
#ASP.NET Authentication
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconASPNETAuthenticati
on.asp?frame=true
#ASP.NET Authorization
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconaspnetauthorizatio
n.asp?frame=true
Hope also helps.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx