Breaking News
Loading...
Sunday 14 October 2012

How to get browser details using asp.net ?


below code is give the name of browser witch is use by client.

/////////////////////////////////////// CODE ///////////////////////////////


using System.Web;
...
HttpBrowserCapabilities bc = HttpContext.Current.Request.Browser;
String Browser = bc.Browser + " " + bc.Version;


///////////////////////////////////////////////////////////////////////////////////

now you can print the string browser which print the name of browser.


--
/\/ir@\/  <(.'.)>

0 comments:

Post a Comment

Thanks for comment

 
Toggle Footer