0

我的 HTML 编辑器和文件上传 ctrl 中的值丢失

这是我的示例代码

<asp:UpdatePanel ID="up_pnl_Ctrls" runat="server" UpdateMode="Always">
    <ContentTemplate>
        // TextBox ctrls and Radio buttons
    </ContentTemplate>
</asp:UpdatePanel>

<asp:UpdatePanel ID="up_pnl_Send_Key" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
    //File Upload Ctrl
    </ContentTemplate>
    <Triggers>
        <asp:PostBackTrigger ControlID="btnCreate"></asp:PostBackTrigger>
    </Triggers>
</asp:UpdatePanel>

<asp:UpdatePanel ID="upPnl" runat="server" UpdateMode="Always" EnableViewState="true" >
            <ContentTemplate>
                <asp:Panel ID="pnlMailContent" runat="server">
                    <FCKeditorV2:FCKeditor ID="FCKeditor1" runat="server" BasePath="~/FCKEditor/" ImageBrowserURL="~/FCKEditor/"
                        LinkBrowserURL="~/FCKEditor/" Height="630px" Width="890px">
                    </FCKeditorV2:FCKeditor>
                    <div class="input-field-error-container">
                    </div>
                </asp:Panel>
            </ContentTemplate>
        </asp:UpdatePanel>
<div class="button-text-2">
      <asp:LinkButton ID="btnCreate" runat="server" ValidationGroup="PublishUser" OnClick="btnCreate_Click"
                CausesValidation="true">Publish</asp:LinkButton>
</div>

如果我使用 Fileupload 并在提交时在 HTML 编辑器中输入了文本;Fileupload.hasfile 失败,在编辑器中输入的值也无法在服务器端取回

提前致谢!

4

1 回答 1

0

我已经设置了 pnl UpdateMode="Conditional" 然后我完美地得到了它......但真的很遗憾没有答案甚至评论:(

于 2012-02-25T06:20:15.583 回答