*************************************
index.aspx文件
**************************************
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:button id="Button1" style="Z-INDEX: 101; LEFT: 272px; POSITION: absolute; TOP: 128px" runat="server" Text="Button"></asp:button>
<INPUT id="name1" style="Z-INDEX: 102; LEFT: 400px; POSITION: absolute; TOP: 160px" type="text" value="132132123" name="name1"></form>
</body>通过this.Button1.Attributes.Add("onclick","javascript:window.showModalDialog(\"WebForm1.aspx\",window)");打开一个弹出窗口。
**************************************
WebForm1.aspx
**************************************
这个文件中只有一个按钮button1通过它的单击事件执行
private void Button1_Click(object sender, System.EventArgs e)
{
  response.write("<script language=\"JavaScript\">");
  response.write("alert(window.dialogArguments.name1.value);");
  response.write("</script>");
}
response.write("alert(window.dialogArguments.name1.value);");这句出错。
我通过showModalDialog()传递的参数时window是一个对象,不是应该将name1的值给传递过去吗?
我这个是错的,正确的该怎么写?