Author: kpatel982 | Posted on: 7/10/2008 10:13:13 AM | Views : 995

Hi

    I have lable and checkbox and button on page and i am trying to validate checkbox if label.text=' ' . but i think "if loop" under OneCheckbox_ClientValidatedoes  function does not run when i click on button. see below my client side and server side code. When i click on checkbox then lable text should be "no image" and if unckecked then " ".  but if unckecked and lable text = " "  and user click on submit button it calls Javascript function and force user to select checkbox.

Can any one see my code and help me with that?

default.aspx

<head runat="server">

<title Go to the complete details ...