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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…