murugesanks
Programmer
I am passing a varible to Java Script function. While displaying(alert) it gives the value of the variable. But i need this value to be pass to next page. I need that variable in that new window page. How to pass it and how to get in the next page.
if i give like,
<script>
function openwin(x1)
{
alert(x1)
window.open("NewWindowPage.asp?x=x1"
}
</script>
<%
for i = 1 to 10
...
next
%>
<input type="button" value="More Details" name="B3" onClick="javascriptpenwin(<% response.write i %>)">
Next Window Page Coding
-----------------------
<% Response.Write Request.QueryString("x" %>
I am getting result as x1 not the value of x1.
Please Help me,
Murugesan
if i give like,
<script>
function openwin(x1)
{
alert(x1)
window.open("NewWindowPage.asp?x=x1"
}
</script>
<%
for i = 1 to 10
...
next
%>
<input type="button" value="More Details" name="B3" onClick="javascriptpenwin(<% response.write i %>)">
Next Window Page Coding
-----------------------
<% Response.Write Request.QueryString("x" %>
I am getting result as x1 not the value of x1.
Please Help me,
Murugesan