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

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
Toggle Footer