Solved

How do I call a javascript function from within a RequiredFieldValidator?

Posted on 2008-10-20
2
480 Views
Last Modified: 2012-06-27
I am working on asp web page. I want to replace a label with a RequiredFieldValidator message when an error occurs. To achieve this I want to call a javascript function from within the RequiredFieldValidator to trigger the replacement. Can this be done and if so how?

Thanks
0
Comment
Question by:xdubit
2 Comments
 
LVL 9

Expert Comment

by:deathtospam
ID: 22760197
This question should be moved to the ASP.NET zone.
0
 

Accepted Solution

by:
xdubit earned 0 total points
ID: 22774820
OK, thanks.

Moved it and solution found ;)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTML5 frame 5 30
Create animated movies for web page 18 82
Passing Parameter to Stored Procedure 4 27
Insert Button on a table 16 36
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question