Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic HTML Meta Tag creation via C#
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00854425
Message ID:
00854460
Views:
17
Hi Neil,

You can use the AppendHeader method of the Response object to add the info. Here is an example:
Response.AppendHeader("Refresh", "10; URL=WebForm1.aspx")
>Hi,
>
>I would like to create a an html meta tag with associated attributes on the fly. Can I use any of the C# classes within a method to contruct one? A simple example would be appreciated. The tag I would like to construct is:
>
>
><META HTTP-EQUIV="Refresh" CONTENT="0; URL=/relpath/mypdf.pdf">
>
>
>I will need to pass the page the URL (/relpath/mypdf.pdf) in order to complete the the attributes of the meta tag.
>
>
>Thank you
>Neil
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform