4
Answers

asp.net validation controls not work onclientclick

Ramesh gawade

Ramesh gawade

8y
290
1
<asp:Button ID="btnSubmit" runat="server" Text="I accept" class="btn_class" Width="100px" OnClientClick="javascript:checkdetails(); return false;"
Style="margin-right: 5px" ValidationGroup="v1"/>
 
 
 
 
 
validation controls not work please help 
Answers (4)
0
eksypnos123

eksypnos123

NA 65 0 20y
Much easier to create an insert command object and then run it using executeNonQuery() You just set the value for the Name, ID will be handled by the database. and by the way, this is C# forum, so what's this Dim overthere?