I got the detection code for C# from http://detectmobilebrowsers.com/. Now, I don’t know where to put this up and how to get it working.
Basically, all I want is that my mobile visitors should be redirected to http://m.site.com, where my mobile website resides. Let me know how to achieve this task via above code or any other method.
NOTE:- The main website is an Asp.net MVC3 application.
I would call the code in the global.asax Application_BeginRequest event.