Dear all I have one query regarding validation controls and javascript used in asp.net c#. I have form on which i have one textbox, required field validator and one button. I wrote a javascript to check the textbox length and assign that javascript function to a button on page_load(), the button also has "required field validator" assigned to it. at first time when i press the button the required field validator dosent work. and javascript function which returns true because it cheks the length > 10. when i take out the assigned javascript the required field validator works.
I want that required field validator works first then javascript function to check length. Please give me the solution
