Advertisement

01.23.2004 at 12:19PM PST, ID: 20861063
[x]
Attachment Details

ASP.Net Controls and Javascript Events

Asked by useless_eater in .NET

Tags: javascript, oncheckedchanged

How do I tell an ASP.Net control to call a javascript function when an event occurs?  If I try and do it the same way as I would with a normal HTML control it tells me my javascript function is not part of my ASP page.

'helloworld()' is not a member of 'ASP.CreateEvent_aspx'.

The tag is...

<asp:RadioButton id="RadioButton1" runat="server"
OnCheckedChanged="helloworld()"></asp:RadioButton>

My helloword function gets called OK from an HTML tag, so what's differnt with ASP.Net?

Start Free Trial
[+][-]01.23.2004 at 12:32PM PST, ID: 10187498

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.23.2004 at 12:58PM PST, ID: 10187703

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: .NET
Tags: javascript, oncheckedchanged
Sign Up Now!
Solution Provided By: mmarinov
Participating Experts: 2
Solution Grade: B
 
 
[+][-]01.24.2004 at 04:04AM PST, ID: 10190594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2004 at 04:25AM PST, ID: 10190655

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2004 at 08:31AM PST, ID: 10191585

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]01.24.2004 at 12:10PM PST, ID: 10192191

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32