Pass data from one page to another new popup window

Ranjeet_8
Posted by Ranjeet_8 under JavaScript category on | Points: 40 | Views : 1344

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function PassData() {
var Qstr = document.getElementById("<%=txtData.ClientID %>").value;
window.open('Your-Target-Page.aspx?ID=' + Qstr, 'NewWindow', 'width=400,height=300,location=no,menubar=no,resizable=no,scrollbars=no,status=yes,toolbars=no');
return false;
}

</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="txtData" runat="server" Text="23"
CssClass="TextBox"></asp:TextBox>
<asp:Button ID="btnRedirect" runat="server" Text="Window Open"
CssClass="Button" OnClientClick="return PassData(); " />
</div>
</form>
</body>
</html>

Comments or Responses

Login to post response