Javascript Validition and Required Validator

G

Guest

Hello, I created a simple javascipt routine to do some validation. I
attached that script to my ASP Button with the following code...
cmdAddTask.Attributes["onclick"] = "javascript:return
ValidateItemsSelected(lstSelectedGroupOwners, spnErrSelectedGroupOwners);";

After I did this, my "asp:requiredvalidator" stopped working. If I remove
the code above, and re-run, my ASP RequiredValidator works just fine.

I am guess that I am clobbering something....what is the appropriate
technique to get both to work?

Thanks!!
 
B

bruce barker

the supported method is to create a custom validator, and let the standard
validation call it. the hack is to call the validation routine yourself. a
view source will give you all the info you need.

-- bruce (sqlwork.com)

| Hello, I created a simple javascipt routine to do some validation. I
| attached that script to my ASP Button with the following code...
| cmdAddTask.Attributes["onclick"] = "javascript:return
| ValidateItemsSelected(lstSelectedGroupOwners,
spnErrSelectedGroupOwners);";
|
| After I did this, my "asp:requiredvalidator" stopped working. If I remove
| the code above, and re-run, my ASP RequiredValidator works just fine.
|
| I am guess that I am clobbering something....what is the appropriate
| technique to get both to work?
|
| Thanks!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top