Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML anchor in ASPX page
Message
De
04/08/2008 16:12:17
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01336103
Message ID:
01336338
Vues:
10
>>Don't see how the ClientScriptManager would help in my situation - I'm happy to have the Javascript embedded in the HTML markup and that part is working fine. My problem is finding a way to modify the HtmlAnchor on the server side when it doesn't have a 'runat=server' attribute.
>>
>>Regards,
>>Viv
>
>Create a JavaScript function in your page to modify the HTML based on the passed message and just call this function with your server parameter calling ClientScriptManager. That's the approach we're using in one of our pages, I can give you more details later on if needed.

I thought of doing something like that but it just felt a bit 'clunky'. Since I've realized that I can have an HTML anchor with a runat server attribute without actually causing a postback I can go with that.
Best,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform