Solved

Getting Navigator.AppName into Code Behind

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

929 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now