Click here to Skip to main content
15,906,285 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all,
i am working on a website where i have used required attribute of HTML5. now i have two buttons one is submit and other is delete (these both button are asp:button control) now when i want to delete the record it still ask me for the validation on some textboxes which i dont want. is there something like validation group or some other property which i can apply on textboxes and submit button only???
Posted

1 solution

okay i have found a solution to the above question. i have add the following code on button.
ASP.NET
<asp:button id="btndelete" runat="server" text="Delete" formnovalidate="formnovalidate"  />


the formnovalidate works for me, however need to check on all browsers for compatibility. but for now it is wokring on mozila and chrome.
 
Share this answer
 
v2
Comments
amity21 12-Mar-14 0:23am    
formnovalidate attribute is supported in IE 10, Firefox, Opera, and Chrome. It will not support IE9 or previous versions of IE.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900