CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 adding server onclick event to anchor control

Print topic Send  topic

Author Message
mike2
Posted: 02/16/2005, 4:11 AM

hello,
does somebody know, to add an onclick event to an anchor html control..in the ccs properties window is only a before show event!!
thanks
mike
E43509

Posts: 283
Posted: 03/01/2005, 10:28 PM

I haven't done this to an anchor tag but if you are trying to add some javascript to other controls in CCS you have to do it programmatically and not thru the extended HMTL properties

You need to do something like:
myctl.Attributes("onclick") = "alert('hello');"

Check the code in the aspx file and verify that the anchor tag has a runat="server"; then you can do the attributes command.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.