Copy and paste the code you will get the desired output.
--save this as 'WebForm2.aspx' ---------------
<%@ Page Language="
vb" AutoEventWireup="false" Codebehind="WebForm2.aspx.
vb" Inherits="
VB.WebForm2"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm2</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<script language="javascript">
function openMyWindow()
{
var strFirstName;
var strFamilyName;
var selYear;
var strURL;
strFirstName=document.getElementById("firstName"). value;
strFamilyName=document.getElementById("familyName" ).value;
strYearArrive=document.getElementById("selectYear" ).value;
strURL="CheckStudet.aspx?firstName="+strFirstName+ "&familyName="+strFamilyName+"&YearArrive="+strYea rArrive;
window.open(strURL,"Check","width=500,height=250,d irectories=no,location=no,menubar=no,scrollbars=no ,status=no,toolbar=no,resizable=no");
return false;
}
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:TextBox id="firstName" style="Z-INDEX: 101; LEFT: 200px; POSITION: absolute; TOP: 72px"
runat="server"></asp:TextBox>
<asp:TextBox id="familyName" style="Z-INDEX: 102; LEFT: 200px; POSITION: absolute; TOP: 112px"
runat="server"></asp:TextBox>
<asp:DropDownList id="selectYear" style="Z-INDEX: 103; LEFT: 200px; POSITION: absolute; TOP: 152px"
runat="server">
<asp:ListItem Value="2000" Selected="True">2000</asp:ListItem>
<asp:ListItem Value="2001">2001</asp:ListItem>
<asp:ListItem Value="2002">2002</asp:ListItem>
<asp:ListItem Value="2003">2003</asp:ListItem>
<asp:ListItem Value="2004">2004</asp:ListItem>
</asp:DropDownList>
<asp:Button id="Check" style="Z-INDEX: 104; LEFT: 208px; POSITION: absolute; TOP: 192px" runat="server"
Text="Button"></asp:Button>
</form>
</body>
</HTML>
----Save this as 'WebForm2.aspx.
vb' ------
Public Class WebForm2
Inherits System.Web.UI.Page
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Protected WithEvents firstName As System.Web.UI.WebControls.TextBox
Protected WithEvents familyName As System.Web.UI.WebControls.TextBox
Protected WithEvents selectYear As System.Web.UI.WebControls.DropDownList
Protected WithEvents Check As System.Web.UI.WebControls.Button
'NOTE: The following placeholder declaration is required by the Web Form Designer.
'Do not delete or move it.
Private designerPlaceholderDeclaration As System.Object
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Check.Attributes.Add("onclick", "javascript
:openMyWindow();")
End Sub
End Class
-------
Thanks
Nash