Hi,
I have a label and i have a textbox inside the modalpopup control i want to show textbox(which is in modalpopup) data to label.
I have written the code like below
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:Label ID="lblnotes" runat="server"></asp:Label>
<cc1:ModalPopupExtender ID="ModalPopupExtender4" runat="server" TargetControlID="lnknotesedit"
PopupControlID="panel9" />
<asp:UpdatePanel ID="a" runat="server">
<ContentTemplate>
<asp:Panel ID="Panel9" runat="server" Height="300px">
<input type="button" id="btnclose" value="[ X ]" />
<h2>
Edit Notes
</h2>
<div>
<p>
<asp:TextBox ID="txteditnotes" runat="server" TextMode="MultiLine" Height="150px"
Width="565px" />
</p>
</div>
<div>
<input type="button" id="btncancelnotes" value="Cancel" />
<asp:Button ID="btnupdatenotes" class="button right" runat="server" Text="Update"
ValidationGroup="f" OnClick="btnupdatenotes_Click" />
</div>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
<asp:LinkButton class="edit" ID="lnknotesedit" runat="server">Edit</asp:LinkButton>
In code behind
protected void btnupdatenotes_Click(object sender, EventArgs e)
{
lblnotes.Text = txteditnotes.Text;
}
Thanks in advance..