I am using Window.location to go to another page two times in my code written in asp using vbscript. For one it always works fine. For other it gives problems some times displaying an error 'window is undefined'
the structure of my code is
<%
Select Case a
Case "1"
Response.Write "<INPUT type=""BUTTON"" VALUE=""Select Dates"" OnClick=""Window.location='links.asp?link=OLM&try=4'"">"
Case "2"
Response.Write "<INPUT type=""BUTTON"" VALUE=""Select Dates"" OnClick=""Window.location='links.asp?link=OOO&try=4'"">"
End Select
%>
It gives the error with the second part. The first part never gave the error
Thanks