Categories
Coding

Accessing the Html Header in ASP.NET 2.0

Posting this for future reference:

Dim header As Web.UI.HtmlControls.HtmlHead
header = TryCast(Me.Page.Header, Web.UI.HtmlControls.HtmlHead)
If (header IsNot Nothing) Then
Dim link As New HtmlLink
link.Attributes.Add("type", "text/css")
link.Attributes.Add("rel", "stylesheet")
link.Attributes.Add("media", "screen")
link.Attributes.Add("href", "~/style.css")
header.Controls.Add(link)
End If

Categories
Coding

ASP.Net Paths

Just posting a link to this article by Rick Strahl as its one I seem to refer to time after time…

Categories
Coding

Implementing Waiting Pages in ASP.NET

Just adding this for future reference (I know a project it would be perfect for).

Categories
Coding

The ASP.Net Web Config File

Posting this for future reference…

Categories
Coding

Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About

Interesting tips and tricks.