Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi

 

I want to use the validation controls to validate the user input at the client side.

the senario is this.

 

There are four text Fields each having a validation control attached to them and there are two buttons that send the data back to the server.

 

user can only fill two of the text boxes andclick the appropriate button but the problem is because the other two textboxes are empty so form does not get post back.

 

I want to validate only two apprpriate text boxes when ever a button is clicked.

If any body can help I will be thank full to him.

 

Thanks.

Asif Raza Ashraf

Senior Software Engineer

Electronic Solutions Pakistan

Islamabad

Posted (edited)

But there is a problem in using the Java Script because I didnt Know how to use the Java Script.

If you kmow a good toturial Then please Help me Thanks:confused:

Edited by AsifCh

Asif Raza Ashraf

Senior Software Engineer

Electronic Solutions Pakistan

Islamabad

  • Moderators
Posted
You can add a Custom Validater to each textbox and have them all point to the same client-side function which will validate the form. Use JScript or VBscript in the function. Follow the tutorials that PlausiblyDamp linked.
Visit...Bassic Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...