Click here to Skip to main content
15,936,294 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a text box in user control ..that user control is is placed in web page .the web page in master page.i want to write the java script function in master page for validating the text box in user control from web page please clarify my doubt this is my urgent requirement..
Posted
Updated 27-Sep-12 21:35pm
v2
Comments
Arunprasath Natarajan 29-Sep-12 6:52am    
Mention clearly, what validation required.

1 solution

i want to write the java script function in master page for validating the text box in user control
So, what is the issue? At the end, when the final HTML is formed, JS of Masterpage and HTML of usercontrol are on same page. Thus, any Javascript code written on Masterpage will be available and accessible at runtime.

Just write the JS code as per need. Define a validation method, access the controls to validate, validate them. Show the response as per validation.

Try out.
 
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