To change a page's title:
this.Header.Title = "This is the new page title.";
To add a style attribute for the page:
Style style = new Style();
style.ForeColor = System.Drawing.Color.Navy;
style.BackColor = System.Drawing.Color.LightGray;
// Add the style to the header for the body of the page
this.Header.StyleSheet.CreateStyleRule(style, null, "body");
To add a stylesheet to :
HtmlLink link = new HtmlLink();
link.Attributes.Add("type", "text/css");
link.Attributes.Add("rel", "stylesheet");
link.Attributes.Add("href", "~/newstyle.css");
this.Header.Controls.Add(link);
Defend ASP.NET and WCF from various attacks using Nginx
-
ASP.NET websites and WCF services can be attacked in many ways to slow down
the service and even cause a complete outage. One can perform slowloirs
attack ...
8 years ago
No comments:
Post a Comment