日期:2014-05-17 浏览次数:20403 次
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModelDialogMain.aspx.cs" Inherits="testWeb.ModelDialogMain" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <div> <asp:Label ID="Label2" runat="server" Text=""></asp:Label><br /> <asp:Label ID="Label1" runat="server" Text="Condition"></asp:Label> <asp:TextBox ID="txtCondition" runat="server"></asp:TextBox><br /> <asp:Button ID="btnShowCondition" runat="server" Text="ShowSelect" /> </div> </form> <script type="text/javascript"> // 打开选择子窗体 var result = window.showModalDialog("ModelDialogSub.aspx", "", "dialogWidth=" + 100 + "px;dialogHeight=" + 100 + "px;resizable:yes;") // 返回值赋值给检索条件 var txtCond = document.getElementById("txtCondition"); txtCond.value = result; </script> </body> </html>