E
Earl Teigrob
I have this method on many of my pages. I would like to move it to a Class
as a static method so I can access it in all my pages. However, the page
namespace is only available in the code behind files. It it possible to do
this? (And please do not tell me how bad it is to use a popup, thanks)
private void UserMessage(string Message, bool Popup)
{
StatusMessage.Text=Message;
ShowMessage.Visible=true;
if (Popup)
{
Page.RegisterStartupScript("StatusMessage","<SCRIPT
LANGUAGE=\"JavaScript\">alert('"+ Message +"');</Script>");
}
}
Thanks for you help!
Earl
as a static method so I can access it in all my pages. However, the page
namespace is only available in the code behind files. It it possible to do
this? (And please do not tell me how bad it is to use a popup, thanks)
private void UserMessage(string Message, bool Popup)
{
StatusMessage.Text=Message;
ShowMessage.Visible=true;
if (Popup)
{
Page.RegisterStartupScript("StatusMessage","<SCRIPT
LANGUAGE=\"JavaScript\">alert('"+ Message +"');</Script>");
}
}
Thanks for you help!
Earl