user agent return on a local machine

B

Brian Henry

is there a reason why when doing Request.ServerVariables("USER_AGENT") on
the same machine that is the server (using for development) that it would
return a null string? It's not returning anything, which seems wierd...
 
C

Carl Prothman [MVP]

Brian said:
is there a reason why when doing
Request.ServerVariables("USER_AGENT") on the same machine that is the
server (using for development) that it would return a null string?
It's not returning anything, which seems wierd...

Brian,
Rather then using the Rquest.ServerVariables, try using Request.Browser.
e.g.
HttpBrowserCapabilities hbc = Request.Browser;
bool doesActiveX = hbc.ActiveXControls;

For more information, see:
http://msdn.microsoft.com/library/e...ystemwebhttpbrowsercapabilitiesclasstopic.asp

--

Thanks,
Carl Prothman
Microsoft ASP.NET MVP

Hire top-notch developers at
http://www.able-consulting.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top