UpdatePanel problem

J

Jeff

hey

asp.net 3.5

I'm expermenting with UpdatePanel (started learning about UpdatePanel
tonight). I've have a webpage which contain a UpdatePanel etc... In the code
behind I try to update the TextBox in the UpdatePanel, but the TextBox isn't
updated.. or well the TextBox doesn't display the value...

Here is the markup:
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server"
UpdateMode="Conditional">
<ContentTemplate>
<asp:TextBox ID="TextBox2" TextMode="MultiLine" Width="100%"
Height="50" runat="server"></asp:TextBox>
</ContentTemplate>
</asp:UpdatePanel>

Here is the behind code:
protected void OnResponse(IAsyncResult ar)
{
/* some code is removed */
TextBox2.Text = "fgsgsfgsgsgsdgsdgsdgsfdg";
UpdatePanel1.Update();
}

I've set a breakpoint in the code above, so I know it get executed

any suggestions why "fgsgsfgsgsgsdgsdgsdgsfdg" isn't displayed in the
TextBox ?
 

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

No members online now.

Forum statistics

Threads
473,808
Messages
2,569,686
Members
45,452
Latest member
AmberLayde

Latest Threads

Top