Solved

Getting Navigator.AppName into Code Behind

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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