Masterpage Body onload ? Setting from contentpage?

J

jobs

Hello.

How can a set the Body onload from a content page since Body is on the
masterpage?

on my master page:

<body runat="server" id="Body" >

How can I reference Body. on the content page's codebehind?

Thanks for any help or information.
 
M

Mark Rae [MVP]

How can a set the Body onload from a content page since Body is on the
masterpage?

on my master page:

<body runat="server" id="Body" >

How can I reference Body. on the content page's codebehind?

((HtmlGenericControl)Master.FindControl("Body")).Attributes["onload"] =
<whatever>;
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

jobs said:
Hello.

How can a set the Body onload from a content page since Body is on the
masterpage?

on my master page:

<body runat="server" id="Body" >

How can I reference Body. on the content page's codebehind?

Thanks for any help or information.

((ClassOfYourMasterPage)Master).Body
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top