User908137417 posted
Hello
Does anybody have an good link for help with browser detection scripts.. I have a sample script that uses ''Request.Browser.Type'', but I dont know how to serve the right content based on the browser type. Basically I want the webpage to render correctly
on a mobile phone, but still want the users to see a funtional website on pc based browser.
Basic principal of what i'm trying to achieve.
<script language="VB" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
ltlBrowserName.Text = Request.Browser.Type
If Request.Browser.Type = "PC Based Browser" Then
<html>
Serves Normal webpage to browser.
</html>
End If
If Request.Browser.Type = "Mobile Phone" Then
<html>
Mobile Page Content
</html>
End If
End Sub
</script>
How should this be done, should I use a response re-direct to re-direct the user based on browser type.
Kind Regards
James