<asp:UpdatePanel ID="uppBaixa" runat="server">
<ContentTemplate>
<asp:TextBox ID="txt1" runat="server" AutoPostBack="true" OnTextChanged="txt1_TextChanged"></asp:TextBox>
<asp:TextBox ID="txt2" runat="server"></asp:TextBox>
<asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" />
</ContentTemplate>
</asp:UpdatePanel>
This is basically what the ASPX looks like. When I leave (tab) txt1 the TextChanged event is called and it normally fills txt2. But when I change the text in txt2and hit btnSaveto update this data, the txt1_TextChanged is called AGAIN (before the actual btnSave_Click method triggers)
If you
Add the following methods
Update txt1 to ABC then txt2 will become ABC
This means that what you’ve described doesn’t reproduce.
Note that even when you set
txt1.text = "foo"on server side it doesn’t raise thetextChangedevent, which means its probably something on the client sideTry adding this to your
Page_Loadevent to find it.