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

Click here to load this message in the networking platform