probelem regarding validation on my ASPX form.
Dear friends,
I have a probelem regarding validation on my ASPX form.
All the controls used are server side (runat=server attribute)
I have used RequiredFieldValidator to check empty fields.At the same time i have aslo used a javascrript on Button click(Butoon is also server side control)
to call the function of javascript i have used somethig like this under page_load event
Code:
btnInsert.Attributes.Add("OnClick","return check();");
problem now is this if my Javascript function return TRUE my form is submited without calling my required field validators.
any suggestion .
Re: probelem regarding validation on my ASPX form.
No,One Replied to my Query.
Am I not clear in making my problem understand to u all??? :mad:
Re: probelem regarding validation on my ASPX form.
Use a CustomValidatorControl and perform your javascript checks in there.