How To Update TextBox using Update panel in asp.net
I Have a Text Box Out Side the Update Panel and One Button inside the Update panel When i Click on the Button it show value in TextBox.i Have Write Following Code.



"<%@ Register TagPrefix="AjaxToolKit" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
 <asp:TextBox ID="TextBox5" runat="server" />
<asp:UpdatePanel runat="server" ID="Up1">
   <ContentTemplate>
<asp:Button ID="btn" runat="server" onclick="btn_Click" />
  </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>"



----------Code Behind---------
 protected void btn_Click(object sender, EventArgs e)
        {
            TextBox5.Text = "20000";
        }
How To Update TextBox using Update panel in asp.net
===

I Have a Text Box Out Side the Update Panel and One Button inside the Update panel When i Click on the Button it show value in TextBox.i Have Write Following Code.



"<%@ Register TagPrefix="AjaxToolKit" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>


<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" />
 <asp:TextBox ID="TextBox5" runat="server" />
<asp:UpdatePanel runat="server" ID="Up1">
   <ContentTemplate>
<asp:Button ID="btn" runat="server" onclick="btn_Click" />
  </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>"



----------Code Behind---------
 protected void btn_Click(object sender, EventArgs e)
        {
            TextBox5.Text = "20000";
        }