Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HTML anchor in ASPX page
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01336103
Message ID:
01336206
Vues:
17
>>>>Hi,
>>
>>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.
>>
>
>I'm not entirely sure what you're asking/doing, but did you know you can add a runat="server" to any HTML tag and give it an ID and reference it on the server side?

Yes. But I didn't want runat server behaviour - or at least I thought I didn't because I assumed it would case a postback. Now I realize that's not the case so I can use that approach.

BTW, I found I could create an HtmlAnchor control in code behind but could not find it in the toolbox (or in the list of available toolbox items) or add it manually to the aspx. Any idea why that might be?

Thanks,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform