开发者

Validation in imagebutton, button not occuring

开发者 https://www.devze.com 2023-02-18 12:13 出处:网络
In my project, validation is not occurring at button_click and imagebutton_click. Why could it be so?

In my project, validation is not occurring at button_click and imagebutton_click. Why could it be so?

I also gave same validation group to all validators and button and开发者_如何学编程 also CAUSEVALIDATION "true" in button

Please help solve this.


Add validation group to image button too and check. Also check if your image button has image in it. Other wise it will not fire events

**

<asp:TextBox ID="txt_password" runat="server" CssClass="text_box_password" TextMode="Password" Width="180px"></asp:TextBox> 
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_password" ErrorMessage="*" ValidationGroup="aaaa">**</asp:RequiredFieldValidator>

**

0

精彩评论

暂无评论...
验证码 换一张
取 消