Saturday, March 10, 2012
validation control not working after OnClientClick added to button click event
actuallly i have to validate checkbox terms and conditions before submitting the form and to validate forms there is already server side validation controls are used. As there is validation controls not work on checkbox thats why i have written a javascript function to validate that checkbox but when i added the OnClientClick on that button , i checked that term and condition working perfectly but validation controls are not validating the forms. if i remove the onClientClick its works perfectly . finally with help of http://stackoverflow.com . i found the solution i have to explicitly call the validate function of server side validation controls and now my button html look like this :
OnClientClick="Page_ClientValidate(); IsChecked();" />
Subscribe to:
Post Comments (Atom)
How cache can be enabled for embeded text as well for search query results in Azure AI ?
Great question, Rahul! Caching in the context of Azure AI (especially when using **RAG pipelines with Azure OpenAI + Azure AI Search**) can...
-
The error message you encountered ("DeleteService FAILED 1072: The specified service has been marked for deletion") indicates tha...
-
The error message you're seeing indicates that the "global using directive" feature is currently unsupported in the version o...
-
may be you need to show serial number in your rdlc report then you can use following syntax for showing 1,2,3... continuous on in table fie...
THANK YOU! Adding Page_ClientValidate(); works!
ReplyDelete