Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: JavaScript in User Control


Message #1 by "Mohit Gupta" <mbgupta90@y...> on Fri, 7 Mar 2003 16:28:01
Hi Friends,

I have created a User Control with 5 radio buttons.
A web page has 3 such User Controls on it.

I need to do client side validation on these 15 radio 
buttons.
The Java Script should check that at least 75% of the 15 
radios buttons have been checked.
(Say - 11 out of 15 radio buttons should be checked)

I would like the User Control to create the client script.

I have checked methods/functions of the Page class, 
methods like 
IsClientScriptBlockRegistered/RegisterClientScript/Register
OnSubmit  --- etc ---

But I am not clear how to go about doing the above 
validation?

Can anyone please give me some hints!!!

I will be thankful for any help provided.

Regards
Mohit

  Return to Index