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:
00854560
Views:
15
Thank you Cathi,

That worked like a charm.
Now I can redirect with a time delay DYNAMICALLY.
for example:
private void Page_Load(object sender, System.EventArgs e)
{
  // Put user code to initialize the page here
		
  string myReport = Request.QueryString["cReport"];
  this.lblStandby.Text = "Please standby while you are re-directed to your report: *" + myReport + "* for viewing.....";
  string cContent = "7; URL=" + "TEMP/" + myReport + ".PDF";
  Response.AppendHeader("Refresh", cContent);
}
Regards,
Neil


>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform