Insert, Crop META-Tags programmtechnically

  • Thread starter Thread starter Jazper
  • Start date Start date
J

Jazper

hi
how can i Insert, change and crop META-Tags auf a Webform
programmtechnically?
Regards
Jazper
 
Found the solution myself

Add in HTML-View
<meta id="tagMetaRefresh" runat="server">

Add in Webform-Class
protected System.Web.UI.HtmlControls.HtmlGenericControl tagMetaRefresh;

Add in Weform-Code
this.tagMetaRefresh.Attributes.Add("http-equiv", "refresh");
this.tagMetaRefresh.Attributes.Add("content", "3");
or
this.tagMetaRefresh.Attributes.Clear();

Regards, Jazper
 
Back
Top