Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Log mobile users

Status
Not open for further replies.

ponoodle

IS-IT--Management
Dec 10, 2010
135
US
Can we log how many visitors to our website are using mobile devices. The site is ASP.NET, on a windows server 2008 server with IIS 7. I thought I could do this with JavaScript, but I have read that js can't write to a file on the server. Does anyone have any ideas?

Thanks
 
Try:

if (Request.Browser["IsMobileDevice"] == "true" )
{
//Do stuff;
}
else
{
//Do other stuff;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top