Hi.. Yes OnClientClick only you have to call the function which you written for the validations it will do the client side validations. just check the validators if you want to validate a perticular controls just go through below link it might be helpfull for you
http://msdn.microsoft.com/en-us/library/ms972961.aspx All The Best. On Aug 18, 8:20 am, Suraj <[email protected]> wrote: > Hi, > > I have a search button I my aspx page. When the user clicks on search, it > has to do first client side validation i.e., check if the user has entered > any data by using javascipt and then should go to code behind. > > So, the button will have two functions OnClick="btnSearch_Click" and > OnClientClick="btn_check" in the source of aspx page. > > Is this correct? > If not, how can i achieve both client and server side validation on search > button. > Thanks, > > Regards, > > Suraj
