Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
387 views
in Technique[技术] by (71.8m points)

juice ui - Unable to access controls inside JuiceUI dialog

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>
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...