M
mazdotnet
Hi,
I have a master file with the following setting
<body runat="server" id="Body">
and in the .cs I have
Body.Attributes.Add("onload",
"menuCurrentPage('current','navlist');");
Now in one of my content files I want to add an additional parameter
to the onload
HtmlControl body = (HtmlControl)Master.FindControl("Body");
body.Attributes.Add("onload", "alert('hello world');");
However, this overwrites the value in my onload attribute on the
master page and so I lose 'menuCurrentPage('current','navlist');"); '.
How can I append from my content page to an attribute in my master
page? so that the end result would be
<body onload='menuCurrentPage('current','navlist');"); alert('hello
world');");'>
Thanks
M.
I have a master file with the following setting
<body runat="server" id="Body">
and in the .cs I have
Body.Attributes.Add("onload",
"menuCurrentPage('current','navlist');");
Now in one of my content files I want to add an additional parameter
to the onload
HtmlControl body = (HtmlControl)Master.FindControl("Body");
body.Attributes.Add("onload", "alert('hello world');");
However, this overwrites the value in my onload attribute on the
master page and so I lose 'menuCurrentPage('current','navlist');"); '.
How can I append from my content page to an attribute in my master
page? so that the end result would be
<body onload='menuCurrentPage('current','navlist');"); alert('hello
world');");'>
Thanks
M.