Problem with asp.net validators .net 2.0
-
Dear all, I have an asp.net web page (feedback form) that has some validators implemented in order to ensure valid data. I also have a searh textbox and button in header of the page. My problem is that when I click the search button in the header, its click event is not triggered if there are some validation issues due to the validators. Is there a method by which I can only trigger the validators when clicking a particular button in the page and not on every button. Thanks a lot, Chris
-
Dear all, I have an asp.net web page (feedback form) that has some validators implemented in order to ensure valid data. I also have a searh textbox and button in header of the page. My problem is that when I click the search button in the header, its click event is not triggered if there are some validation issues due to the validators. Is there a method by which I can only trigger the validators when clicking a particular button in the page and not on every button. Thanks a lot, Chris
validations work only when page is postback .. and every button which are using is a asp.net standard control .. so they all will generate post back .. So i suggest using javascript for validations ,, i might be wrong ,, experts will help you still for time being use javascript to do so
If You win You need not Explain............ But If You Loose You Should not be there to Explain......
-
Dear all, I have an asp.net web page (feedback form) that has some validators implemented in order to ensure valid data. I also have a searh textbox and button in header of the page. My problem is that when I click the search button in the header, its click event is not triggered if there are some validation issues due to the validators. Is there a method by which I can only trigger the validators when clicking a particular button in the page and not on every button. Thanks a lot, Chris
You have to use validation Group property of the textbox, button and the validator. Put the common name(like Search group)to this property.So when you click search button then only this validator will work.
-
Dear all, I have an asp.net web page (feedback form) that has some validators implemented in order to ensure valid data. I also have a searh textbox and button in header of the page. My problem is that when I click the search button in the header, its click event is not triggered if there are some validation issues due to the validators. Is there a method by which I can only trigger the validators when clicking a particular button in the page and not on every button. Thanks a lot, Chris