Unable to access controls inside JuiceUI dialog

坚强是说给别人听的谎言 提交于 2019-12-13 04:25:03

问题


When I do a postback, the values of asp.net controls that I have placed inside of a Juice UI dialog are empty.

Below is the client-side dialog code. Neither the textbox nor the dropdownlist retain their values. So when I type something in the textbox and try to access it on the server side with mTxtAddNote.Text, it is empty.

Am I doing something wrong or is this just a limitation with using JuiceUI dialogs that I will have to work around?

<div id="dlgAddNote" title="LOA Application" runat="server">
    <div class="pagetitle" style="padding-bottom: 10px;">
        Add Note:
    </div>
    <div>
        <table cellpadding="5" cellspacing="0" border="0" width="100%">
            <tr>
                <td style="width: 1%; white-space: nowrap; padding-right: 15px; vertical-align: top;" class="boldtext">
                    Type:
                </td>
                <td style="vertical-align: top;">
                    <asp:DropDownList ID="mDdlNoteType" runat="server"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 1%; white-space: nowrap; padding-right: 15px; vertical-align: top;" class="boldtext">
                    Note:
                </td>
                <td style="vertical-align: top;">
                    <asp:TextBox runat="server" ID="mTxtAddNote" Columns="50" TextMode="MultiLine" Rows="5" />
                </td>
            </tr>
        </table>
    </div>
</div>

回答1:


I've confirmed that this is a bug and have created an issue for it. You can track the progress of it here https://github.com/appendto/juiceui/issues/24

Edit

Just pushed a fix for this. The fix will be in the next maintenance release of Juice UI. Thanks for reporting it.



来源:https://stackoverflow.com/questions/10805359/unable-to-access-controls-inside-juiceui-dialog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!