Solved

Getting Navigator.AppName into Code Behind

Posted on 2006-11-06
1
282 Views
Last Modified: 2008-03-06
Hi, I need to get the Navigator.AppName in the code behind

I have tried creating a hidden input variable and setting it to the navigator.appname and then doing a response.write in the code behind, but nothing works. Please help

//ASP
<input type="hidden" name="bt" id="bt" value="" runat="server">

      <script language="javascript" type="text/javascript">
      
      var bt
      bt = document.getElementById("NavigationR_bt");
      bt.value = window.navigator.appName.toLowerCase();

      </script>
**************************
//Code Behind
//nothing gets printed
Response.Write("hello" & bt.Value & "hello");
0
Comment
Question by:Gezna
1 Comment
 
LVL 11

Accepted Solution

by:
ethoths earned 500 total points
ID: 17883902
There is a server side collection sent from the clinet with each request called Server Variables, See...

http://www.w3schools.com/asp/coll_servervariables.asp

I think that the HTTP_USER_AGENT might be the one use need buit take a look at the others. To access this collection its just...
value = Request.ServerVariables("Variable Name")





0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question