Johntoel
08-25-2006, 02:56 AM
<%
dim m
m=1
if m <> 0 then
Response.Write ("<script type=""text/javascript"" language=""javascript"">" & vbcrlf)
Response.Write (" var myVar =" & m & "; //use a server-side statement to pull" & vbcrlf)
Response.Write (" alert(myVar)" & ";" & vbcrlf)
Response.Write (" location.href = 'yes.asp?id1='&myVar" & ";" & vbcrlf)
Response.Write ("</script>" & vbcrlf)
end if
%>
I can pass the value of m to client's myVar and alert box shows it, but I am unable to assign the value of myVar into id1 so that the redirected page would be 'yes.asp?id1=1' as I need to pass querystring id1 for processing in yes.asp. Can anyone help? Thank's
dim m
m=1
if m <> 0 then
Response.Write ("<script type=""text/javascript"" language=""javascript"">" & vbcrlf)
Response.Write (" var myVar =" & m & "; //use a server-side statement to pull" & vbcrlf)
Response.Write (" alert(myVar)" & ";" & vbcrlf)
Response.Write (" location.href = 'yes.asp?id1='&myVar" & ";" & vbcrlf)
Response.Write ("</script>" & vbcrlf)
end if
%>
I can pass the value of m to client's myVar and alert box shows it, but I am unable to assign the value of myVar into id1 so that the redirected page would be 'yes.asp?id1=1' as I need to pass querystring id1 for processing in yes.asp. Can anyone help? Thank's