Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
397 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 Answer

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...