Possible Duplicate:
How would I identify if a website originates from a mobile browser?
I am working on a website in Asp.Net 4.0 and this site has also all mobiles version sites. Now my requirement is that i want to know that when user opens my site at that time in my javascript code captured it that this site runs on PC or Tablet or Mobile and its related operation system and browser also.