still doesn't work!!!
------------------------------------------this is my aspx
page ---------------------------------------------------------
<%@ Page language="c#" Codebehind="WebForm25.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication1.WebForm25" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>WebForm25</title>
<script language="javascript">
function PopUp()
{
window.open("WebForm26.aspx?User=<%=txtUser.Text%>","popupWin","toolbar=0,
location=0, status=0, menubar=0, scrollbar=0, resizable=0, width=600,
height=400, left=50, top=50",true);
}
</script>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="
http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:Label id="lblUser" style="Z-INDEX: 101; LEFT: 24px; POSITION:
absolute; TOP: 48px" runat="server"
Width="80px" Height="22px">User Name:</asp:Label>
<asp:TextBox id="txtUser" style="Z-INDEX: 102; LEFT: 112px; POSITION:
absolute; TOP: 48px" runat="server"
Width="176px" Height="22px"></asp:TextBox>
<INPUT id="btnCheck2" style="Z-INDEX: 103; LEFT: 304px; WIDTH: 128px;
POSITION: absolute; TOP: 48px; HEIGHT: 32px"
type="button" value="Check!" name="btnCheck2" onclick="PopUp();">
<asp:Button id="btnCheck" style="Z-INDEX: 104; LEFT: 304px; POSITION:
absolute; TOP: 96px" runat="server"
Width="128px" Height="32px" Text="Check!"></asp:Button>
<asp:Label id="lblCheck" style="Z-INDEX: 105; LEFT: 440px; POSITION:
absolute; TOP: 104px"
runat="server" Width="184px" Height="32px"></asp:Label>
<asp:RequiredFieldValidator id="RequiredFieldValidator1" style="Z-INDEX:
106; LEFT: 144px; POSITION: absolute; TOP: 72px"
runat="server" Width="96px" Height="8px" ErrorMessage="User Name
Missing!" ControlToValidate="txtUser">Required
Field!</asp:RequiredFieldValidator>
</form>
</body>
</HTML>
--------------------------------------this code
behind-----------------------------------------------------------------
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace WebApplication1
{
/// <summary>
/// Summary description for WebForm25.
/// </summary>
public class WebForm25 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label lblUser;
protected System.Web.UI.WebControls.Button btnCheck;
protected System.Web.UI.WebControls.Label lblCheck;
protected System.Web.UI.WebControls.RequiredFieldValidator
RequiredFieldValidator1;
protected System.Web.UI.WebControls.TextBox txtUser;
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
}
#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnCheck.Click += new System.EventHandler(this.btnCheck_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void btnCheck_Click(object sender, System.EventArgs e)
{
lblCheck.Text = "You selected " + txtUser.Text;
}
}
}