J
Jon Paal
Trying to convert this to VB and need some help. Standard converters not accepting the code.
major problem is on the last line of code text
thanks for any help -
------------ C# code ------------------
public Global()
{
this.PreRequestHandlerExecute += new EventHandler(Application_PreRequestHandlerExecute);
}
private void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
{
HttpContext CurrentContext = HttpContext.Current;
Page myPage = CurrentContext.Handler as Page;
if (myPage != null)
{
myPage.Theme = (CurrentContext.Profile as ProfileCommon).SiteTheme;
}
}
major problem is on the last line of code text
thanks for any help -
------------ C# code ------------------
public Global()
{
this.PreRequestHandlerExecute += new EventHandler(Application_PreRequestHandlerExecute);
}
private void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
void Application_PreRequestHandlerExecute(Object sender, EventArgs e)
{
HttpContext CurrentContext = HttpContext.Current;
Page myPage = CurrentContext.Handler as Page;
if (myPage != null)
{
myPage.Theme = (CurrentContext.Profile as ProfileCommon).SiteTheme;
}
}