berkshirea
Technical User
Hi guys, I am experimenting with a mobile version (for blackberry) of a site and would like the users to be redirected to this mobile site version. I used the simulator and a real blackberry but it's not redirecting.
I tested it for browser capabilities using the simulator and the real blackberry and gives the same info:
Browser type: Unknown
Browser version: 0.0
Major version: 0
Platform: Unknown
.
.
.
Below is the code for redirect:
Public Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
If Request.Browser("IsMobileDevice") = "true" Or Request.Browser("Blackberry") = "true" Then
Response.Redirect("blackberry.aspx")
Else
Response.Redirect("desktop.aspx")
End If
End Sub
Thanks for any help.