现有两个页面,父页面为Default.aspx,子页面为child.aspx。父页面的设计代码如下:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %><!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>
    <script type="text/javascript" >
    function showDialog()
    {
        window.showModalDialog("child.aspx",null,"status=no;dialogWidth=200px;dialogHeight=250px;menu=no;"
                    +"resizeable=no;scroll=yes;center=yes;edge=raise");
    }
    </script >
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:TextBox ID="noChangeTextBox" runat="server">这里面的内容不需要刷新 </asp:TextBox>
        <asp:TextBox ID="changeTextBox" runat="server" Height="108px" Width="249px">点击子窗体按钮时,只需要
更新此文本框 </asp:TextBox>
        <br />
        <asp:Button ID="refButton" runat="server" Text="显示子窗体" /> </div>
    </form>
</body>
</html>在后台的Default.aspx的Page_Load代码如下:
protected void Page_Load(object sender, EventArgs e)
    {
        refButton.Attributes.Add("onclick", "return showDialog();");//显示“添加批前规划公示”对话框
    }子窗体child.aspx的页面代码如下:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="child.aspx.cs" Inherits="child" %><!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">
    <base target="_self"/>
    <title>子窗体页 </title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="Button1" runat="server" Height="32px" Text="对父窗体局部刷新的操作" Width="177px" /> </div>
    </form>
</body>
</html>我现在想在子窗体Button1的点击事件Button1_Click(object sender, EventArgs e)内对父窗体的changeTextBox对象操作,如何做呢?谢谢