Click here to Skip to main content
15,566,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a textbox and a button "Button1" inside an update panel. On button click vent of "Button1" , it should only validate textbox which inside updatepanel.

Next,

I have another two texboxes and a button "Button2" outside the Updatepanel and on button click event of "Button2", it should validate all the textboxes which is outside as well as inside the update panel.


Thanks in advance for the suggestion.
Posted
Comments
arathi_suresh 14-Sep-11 2:17am    
Show your code

If you are using Javscript, write your validation code in separate function for Button1 & Button2. Then, Call the javascript function separately for Button1 & Button2.
 
Share this answer
 
Hi,
I got the solution by using Validate Method on both the button_click event.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900