Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/325.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何从异步回发中更新文本框_C#_Jquery_Asp.net_Asyncpostbackerror - Fatal编程技术网

C# 如何从异步回发中更新文本框

C# 如何从异步回发中更新文本框,c#,jquery,asp.net,asyncpostbackerror,C#,Jquery,Asp.net,Asyncpostbackerror,我有一个更新面板,上面有一个异步回发的触发器。代码如下: <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:updatePanel ID="tableUpdate" runat="server" updatemode="Conditional"> <Triggers> <asp:AsyncPostBackTrigger ControlID="CreateLi

我有一个更新面板,上面有一个异步回发的触发器。代码如下:

<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:updatePanel ID="tableUpdate" runat="server" updatemode="Conditional">
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="CreateLinkToQuery" />
    </Triggers>
    <ContentTemplate>
        <div>
            <asp:Button ID="CreateLinkToQuery" CssClass="myButton" runat="server" Text="Create Link To Query" OnClick="CreateLinkToQuery_Click"/>
        </div>
        <div>
            <asp:TextBox ID="QueryData" CssClass="popInnerContent" runat="server"/>
        </div>
    </ContentTemplate>
</asp:updatePanel>
当按钮被点击时,如果我添加了要观看的控件,那么它肯定会用新文本更新它,但是在UI上什么都不会发生,如果我在Firefox中发现控件,它会显示为空

我不明白我在这里哪里出错了

需要注意的一点是,此更新面板位于JQuery对话框中

下面是我使用的代码:

$('#CreateQuery').click(function (event) {

    var dlg = $("#dialog").dialog({
    width: 730,
    minWidth: 730,
    modal: true,
    close: function (event, ui) {
        $("#dialog").hide();
    }
    });
dlg.parent().appendTo(jQuery('form:first'));
});

希望这有助于Hiya我尝试了这个,但遗憾的是它仍然没有更新表单希望这有助于Hiya我尝试了这个,遗憾的是它仍然没有更新表单
$('#CreateQuery').click(function (event) {

    var dlg = $("#dialog").dialog({
    width: 730,
    minWidth: 730,
    modal: true,
    close: function (event, ui) {
        $("#dialog").hide();
    }
    });
dlg.parent().appendTo(jQuery('form:first'));
});