Using Masterpages and subscribing to events.

Good PAge regarding the use of masterpages

Also discusses the adding of Javascript to a page using the

Dim script As String = “[Label1ID].innerHTML = ‘boo!’;”
Dim scriptKey As String = “SayBoo”
Dim addScriptTags As Boolean = True

Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As EventArgs)

script = script.Replace(“[Label1ID]”, Label1.ClientID)

ClientScript.RegisterStartupScript( _
Me.GetType(), scriptKey, script, addScriptTags _

End Sub

USEMAP attribute turns the image in to a clientside image map

usemap URL Defines the image as a client-side image map. Look at the ‘map’ and ‘area’ tags to figure out how it works STF

Detect Session Timeout ASP.NET/Javascript/SQL Server


‘HOMEPAGE’ in the above example could be referred to as the login.aspx


Detecting Session Timeout and then using javascript to provide a warning regarding timing out

Using SQL to maintain Session information:

Using the Ad-rotator control to server blank png to renew session.