Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scripts
Message
 
À
16/04/2002 17:45:28
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00645742
Message ID:
00645820
Vues:
11
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform