Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting Navigator.AppName into Code Behind

Posted on 2006-11-06
1
Medium Priority
?
295 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 2000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
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.…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

886 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