Wednesday, July 6, 2011

To Check browser in asp.net application

//For Internet Explorer

Response.Browser.Browser.ToLower().Contains("ie");


or


Response.Write(Request.Browser.ActiveXControls)

//return true if it is IE else false.

No comments:

Post a Comment