Forum Moderators: open
Then in the master page code behind create a public property:
Public Property BodyTag() As String
Get
Return 1
End Get
Set(ByVal value As String)
litDescription.Text = value
End Set
End Property
Also set the ClassName,
<%@ master language="VB" ClassName="tmaster" Debug="false" %>
In your ASPX page:
Dim mMaster As ASP.tmaster = CType(Master, ASP.tmaster)
mMaster.BodyTag = "<body onload=""yourFunction()"">"
On your other pages, you'll need to set the body tag as well, or set a default in your Master Page.
Chip-
Dim myBodyTag As HtmlGenericControl
myBodyTag = Page.Master.FindControl("MasterBody")
myBodyTag.Attributes.Add("onload", "loadEarth('mapDiv');")
myBodyTag.Attributes.Add("onunload", "GUnload();")
End Sub