Click here to Skip to main content
15,942,710 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..

1) We don't care that it is urgent for you. We volunteer our time for your benefit. Believe it or not many experts will completely ignore your question for putting "urgent" in there.
2) What's the problem. If you want to write the javascript function in the Master Page then do that. My personal opinion is that this javascript validation code should be written either into a separate .js file that is imported into the page where it is needed, or is written directly into the web page that consumes the user control. Perhaps you would be even better served by the javascript being dynamically added to the page by the usercontrol whenever it is used.
Share this answer
Check following link:
JavaScript Validation in User Control[^]

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