A
Ant
Hi,
I have a program with a textbox, customvalidator and button.
<asp:TextBox ID="txtName" Runat="server" MaxLength="30"
AutoPostBack="True" CausesValidation="True"></asp:TextBox>
<asp:CustomValidator ID="CVltxtNombre" Runat="server"
ControlToValidate="txtName" Display="Dynamic"
OnServerValidate="CVltxtNombre_ServerValidate"asp:CustomValidator>
<asp:Button ID="btnGo" Runat="server" Text="Go" OnClick="btnGo_Click"
/>
I want to save in Database the textbox.text. If I want to modify one
database record, I get the record and put it in the textbox. When I
change the textbox.text and press button go, goes to
CVltxtNombre_ServerValidate event because it has been a change. But
after this it doesn't go to btnGo_Click event. Why? If Page.IsValid is
true, why doesn't it go to Button event?
Can any help me?? I'm using .NET 2005 beta 1
I have a program with a textbox, customvalidator and button.
<asp:TextBox ID="txtName" Runat="server" MaxLength="30"
AutoPostBack="True" CausesValidation="True"></asp:TextBox>
<asp:CustomValidator ID="CVltxtNombre" Runat="server"
ControlToValidate="txtName" Display="Dynamic"
OnServerValidate="CVltxtNombre_ServerValidate"asp:CustomValidator>
<asp:Button ID="btnGo" Runat="server" Text="Go" OnClick="btnGo_Click"
/>
I want to save in Database the textbox.text. If I want to modify one
database record, I get the record and put it in the textbox. When I
change the textbox.text and press button go, goes to
CVltxtNombre_ServerValidate event because it has been a change. But
after this it doesn't go to btnGo_Click event. Why? If Page.IsValid is
true, why doesn't it go to Button event?
Can any help me?? I'm using .NET 2005 beta 1