I have a repeater that places 600+ textboxes filled with data on my page.
A typical user will edit several of these.
I would like the OnTextChanged event to run when I hit a save button, but it’s not working.
All of my textboxes have the property OnTextChanged="TextBoxChanged"
When my user selects the save button
<asp:Button ID="SaveChangesBtn" CssClass="SaveAndNextBtn" runat="server"
Text="Save Changes" onclick="SaveChangesBtnClick" />
I would like the TextBoxChanged event to run for each textbox that has been changed.
How can I implement this?
Do you rebind the repeater on every postback or have you wrapped the databinding stuff (as you should) in a !IsPostback-check?
If you databind web-databound controls on postbacks, all changes are lost and events won’t be triggered.