Solved

Getting Navigator.AppName into Code Behind

Posted on 2006-11-06
1
283 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

821 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