Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
09-23-2011, 11:07 PM #1
- Join Date
- Jun 2011
- Thanked 0 Times in 0 Posts
formview and ontextchanged ignored
Is there any special interaction between a formview and the attribs: ontextchanged or onchanged?
It seems they are completely usurped by a <requiredfieldvalidator> based on the textbox. (In that case I got no reaction at all)
When I tried it on a textbox with out any extras:
First:<asp:TextBox ID="txtFirst" runat="server" AutoPostBack=true Text='<%# Bind("First") %>' ontextchange=EnablebtnSave/>
But, take off the quotes -- I'm back to zero reaction. I'm expecting a msgbox popup (via the codebehind):
Protected Sub EnablebtnSave(ByVal sender As Object, ByVal e As System.EventArgs) MsgBox("enabling") Dim btnTemp As Object btnTemp = sender.FindControl("btnSave") btnTemp.disabled = False End Sub
I'm pretty sure I've got no typos here and I am changing the contents and moving off the focus. So why doesn't the event fire?
thank you for your input!