asp.net - Avoid double clicking submit with validator display set to dynamic -


i have asp.net customvalidators display="dynamic". layout of page requires use them without validationsummary.

 <asp:customvalidator id="vldfirstthree" controltovalidate="txtfirstthree" runat="server" onservervalidate="validatetextbox" validateemptytext="true" errormessage="please enter first 3 characters of owner name.<br />" cssclass="error" display="dynamic" enabled="true"/> 

if user leaves field blank , clicks submit, error text displayed. if user fixes problem , clicks submit again, validation error text clears, second click required submit page. i've tried writing server-side code , javascript cause validated textbox blur() before submitting, i'm still running need click twice: once clear message , again submit.

is there way clear error text , perform submit 1 click?

the answer second 1 here: requiredfieldvalidator have click twice.

i had set enableclientscript="false".


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -