By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,760 Members | 955 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,760 IT Pros & Developers. It's quick & easy.

HOW TO: Get from the aspx context the current authenticate username ?

P: n/a
Hi,

in vb6 we could use the GetObjectContext("Request") of the
ASPTypeLibrary.Request

in order to get the ServerVariables("XXX") from the asp to the dll .

can we do that in aspx and vb dot net dll ?

the question is if there is a context switch between aspx to the dot net dll
?

10x

Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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...WebHttpContext
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...ETAuthenticati
on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio
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

Nov 20 '05 #2

P: n/a
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...WebHttpContext
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...ETAuthenticati
on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio
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

Nov 20 '05 #3

P: n/a
Hi Steven ,

10x for the information

I will go over it and if I will have more questions I will ask .

bye and 10x again :-)

Tiraman
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ek**************@cpmsftngxa06.phx.gbl...
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...WebHttpContext 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...ETAuthenticati on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio 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

Nov 20 '05 #4

P: n/a
Hi Steven ,

10x for the information

I will go over it and if I will have more questions I will ask .

bye and 10x again :-)

Tiraman
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ek**************@cpmsftngxa06.phx.gbl...
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...WebHttpContext 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...ETAuthenticati on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio 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

Nov 20 '05 #5

P: n/a
Hello Steven ,

Those articles helped me a lot so 10x and have a nice day ;-)
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ek**************@cpmsftngxa06.phx.gbl...
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...WebHttpContext 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...ETAuthenticati on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio 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

Nov 20 '05 #6

P: n/a
Hello Steven ,

Those articles helped me a lot so 10x and have a nice day ;-)
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:ek**************@cpmsftngxa06.phx.gbl...
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...WebHttpContext 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...ETAuthenticati on.asp?frame=true

#ASP.NET Authorization
http://msdn.microsoft.com/library/en...etauthorizatio 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

Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.