Pass data from one page to another new popup window

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

<html xmlns="">
<head runat="server">
<script language="javascript" type="text/javascript">
function PassData() {
var Qstr = document.getElementById("<%=txtData.ClientID %>").value;'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;

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

Comments or Responses

Login to post response