Validation problem
-
hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara
Known Is Drop.Unknown Is Ocean
-
hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara
Known Is Drop.Unknown Is Ocean
Hi, Assign validation group. ie. put txtbox, button and validation control in one group
-
hi In my page, I have one txtbox and one button then i have imageupload control and button here i did required field validator.. my proble is if i click imageupload control button ,here txtbox is empty..here also required field validator working. how i can prevent this? regards sara
Known Is Drop.Unknown Is Ocean
hi sara, this is coz u may b having required field validator 4 both text boxes.Hope on first button click, u want first text box to be validated and on second button click, u want fileupload control to be validated.To incorporate this, use validation group property with validator control and buttons. set ValidationGroup of first validator control and its button to some value(a) and ValidationGroup of 2nd validator control and its button to some value(b). Happy Coding... Sofia