Ajax Toolkit: Setting value of literal control from a textbox in modal popup

S

Smith

Hi

How can I set the value of a Literal control from a TextBox residing in a
Modal Popup? Preferably without refresh.

TextLiteral.Text = TextTextBox.Text in TextSaveButton_OnClick? Is that the
way to go? To avoid refresh/postback I should place the entire table in an
UpdatePanel?

<table>
<tr>
<td>
<asp:Literal ID="TextLiteral" runat="server" />
</td>
</tr>
<tr>
<td>
<ajax:ModalPopupExtender tender ID="TextModalPopupExtender"
TargetControlID="TextButton" PopupControlID="TextPanel"
CancelControlID="TextCancelButton" OkControlID="TextSaveButton"
BackgroundCssClass="modalBackground" runat="server" /> <asp:panel
ID="TextPanel" runat="server" Height="400" Width="640px"
CssClass="modalPopup"> <asp:TextBox Height="300px" ID="TextTextBox"
runat="server" Width="350px"></asp:TextBox> <asp:Button ID="TextCancelButton"
runat="server" /> <asp:Button ID="TextSaveButton" runat="server" />
</asp:panel>
</ajax:ModalPopupExtender>
</td>
</tr>
<tr>
<td>
<asp:Button ID="TextButton" runat="server" />
</td>
</tr>
</table>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top