|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
RE: HttpContext.Current always returns NULL when called from Classic ASPI am using code like the above
oRequest = (ASPTypeLibrary.Request)ContextUtil.GetNamedProperty("Request"); trying to get the client's I.P. address strRemoteAddr = oRequest.ServerVariables["REMOTE_ADDR"].ToString(); but the asp page gives only System.__ComObject Is there some other way to get the client's ip address in a C# class -> dll -> asp page? From http://www.developmentnow.com/g/6_2003_10_0_0_68266/HttpContext-Current-always-returns-NULL-when-called-from-Classic-ASP.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.com Try posting your question to microsoft.public.dotnet.framework.aspnet, or
if it's classic ASP, find a classic ASP group. Robin S. ----------------------------------- Show quote "Les Bell" <nospam@developmentnow.com> wrote in message news:a16e82fe-872f-4ca2-92c2-c0c959652022@developmentnow.com... >I am using code like the above > > oRequest = > (ASPTypeLibrary.Request)ContextUtil.GetNamedProperty("Request"); > > trying to get the client's I.P. address > > strRemoteAddr = oRequest.ServerVariables["REMOTE_ADDR"].ToString(); > > but the asp page gives only > > System.__ComObject > > Is there some other way to get the client's ip address in a C# class -> > dll -> asp page? > > > > > > From > http://www.developmentnow.com/g/6_2003_10_0_0_68266/HttpContext-Current-always-returns-NULL-when-called-from-Classic-ASP.htm > > Posted via DevelopmentNow.com Groups > http://www.developmentnow.com |
|||||||||||||||||||||||