AsifCh Posted December 19, 2003 Posted December 19, 2003 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. Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
fadi Posted December 19, 2003 Posted December 19, 2003 if every button should validate 2 textboxes, then i suggest using a javascript function to do the job, that will work Quote
AsifCh Posted December 20, 2003 Author Posted December 20, 2003 (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 December 20, 2003 by AsifCh Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
Administrators PlausiblyDamp Posted December 20, 2003 Administrators Posted December 20, 2003 http://www.w3schools.com/ has plenty of good web tutorials. http://www.w3schools.com/js/default.asp is the JavaScript one. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Moderators Robby Posted December 20, 2003 Moderators Posted December 20, 2003 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. Quote Visit...Bassic Software
AsifCh Posted December 22, 2003 Author Posted December 22, 2003 Thanks for all this. http://www.w3schools.com is really a great site. Quote Asif Raza Ashraf Senior Software Engineer Electronic Solutions Pakistan Islamabad
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.