Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HTML anchor in ASPX page
Message
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
Miscellaneous
Thread ID:
01336103
Message ID:
01336206
Views:
15
>>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform