Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scripts
Message
 
 
To
16/04/2002 17:45:28
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00645742
Message ID:
00645820
Views:
10
>All,
>
> I want to popup a login window when the user clicks a link on my website. I am using a web forms hyperlink control on an ASPX page. How do I get the hyperlink control to call a javascript on my page? Is there a different way to be doing this?
>
>thanks
>
>Jim

There are several ways. You can add an onclick event to the hyperlink control to execute the javascript function.

MyHyperLinkID.attributes.add("onclick","myfunction()");

Since you don't need the server side processing capabilities of the hyperlink control I would suggest using a standard HTML anchor link instead. Using web form controls when not actually needed is not recommended because it adds additional load to the server.
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform