browser detection, page selection

Results 1 to 3 of 3

Thread: browser detection, page selection

  1. #1
    shanewa3 Guest

    Default browser detection, page selection

    If a person comes to my page using ie4+ or NN4+ than the page should load, if using ie3 or N3 than I would like to redirect them to a page that asks them to download a current browser? any ideas on what I need to change to make it work?<BR><BR>This is in my default page:<BR><BR>&#060;% If Session(BrowserOK"&#062;=True then<BR>&#039;do nothing <BR>else<BR>Response.Redirect("page_30browsers.asp ")<BR>End if<BR>%&#062;<BR><BR><BR>This is in my global.asa:<BR><BR>&#060;SCRIPT LANGUAGE=VBScript RUNAT=Server&#062;<BR>Sub Session_OnStart<BR><BR>Set objBrowser = Server.CreateObject("MSWC.BrowserType")<BR>Session ("txtBrow_Browser") = objBrowser.browser<BR>Session("txtBrow_Version") = objBrowser.version<BR><BR>If IsNumeric(Session("txtBrow_Version")) Then<BR>If UCase(Session("txtBrow_Browser")) = "IE" or <BR><BR>UCase(Session("txtBrow_Browser")) = "NETSCAPE" then<BR>If CDbl(Session("txtBrow_Version")) =&#062; 4.00 Then <BR>Session("BrowserOK") = True<BR>Else<BR>Session("BrowserOK") = False<BR>End If<BR>Else<BR>Session("BrowserOK") = false<BR>End If<BR>End If<BR><BR>thanks for your help

  2. #2
    Join Date
    Dec 1969

    Default RE: browser detection, page selection

    looks like you already got it figured out

  3. #3
    shanewa3 Guest

    Default RE: browser detection, page selection

    Actually I am taking code from the old site and changing it and it does not seem to work. I am not a vb programmer so I am having problems.<BR><BR>corrected code for default.asp<BR><BR>&#060;% If Session("BrowserOK")=True then<BR>&#039;do nothing <BR>else<BR>Response.Redirect("page_30browsers.asp ")<BR>End if<BR>%&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts