I'm trying to add two tags to the body tag into a masterpage to give
<body onbeforeunload="javascript:wait.style.visibility" = 'visible';" onunload="javascript:wait.style.visibility">
from the content page in certain pages. It seems possible and is discussed here:
However I think this is in C# and I only know VB so the bit
using System.Web.UI.HtmlControls;
public partial class MyMasterPage : System.Web.UI.MasterPage
{
public HtmlGenericControl BodyTag
{
get
{
return MasterPageBodyTag;
}
set
{
MasterPageBodyTag = value;
}
}
is confusing me, I'm not sure of the syntax or where to put it in the code behind page, which contains
Partial Class Reports
Inherits System.Web.UI.MasterPage
End Class
and I haven't been able to get it to work. Can anyone advise me, or point me to a similar reference in VB or a better way of doing this in VB?
Thanks
Andy
<body onbeforeunload="javascript:wait.style.visibility" = 'visible';" onunload="javascript:wait.style.visibility">
from the content page in certain pages. It seems possible and is discussed here:
However I think this is in C# and I only know VB so the bit
using System.Web.UI.HtmlControls;
public partial class MyMasterPage : System.Web.UI.MasterPage
{
public HtmlGenericControl BodyTag
{
get
{
return MasterPageBodyTag;
}
set
{
MasterPageBodyTag = value;
}
}
is confusing me, I'm not sure of the syntax or where to put it in the code behind page, which contains
Partial Class Reports
Inherits System.Web.UI.MasterPage
End Class
and I haven't been able to get it to work. Can anyone advise me, or point me to a similar reference in VB or a better way of doing this in VB?
Thanks
Andy