Hi everybody,
I'm trying to load a different logo depending on who's logged in but the code doesn't seem to be working, well, it only works after i've rebooted my PC. Even when I log out it doesn't show the image its supposed to show for an un-authenticated user.
I'm guessing its something to do with refreshing the page.. but even when I manually refresh the page it doesn't work.
Hope someone can help me asap, i've spent too much time on this already.
Thanks
[CODE=C#]
protected void Page_Load(objec t sender, EventArgs e)
{
if (!Page.User.Ide ntity.IsAuthent icated)
BankLogoImage.I mageUrl = SmartecLogoImag e.ImageUrl;
//Showing logged in user's bank logo
if (Global.LoggedI nUser.FkBanksID .Value == 1)
BankLogoImage.I mageUrl = "~/Images/ABSACashProtect or.jpg?";
else
if (Global.LoggedI nUser.FkBanksID .Value == 2)
BankLogoImage.I mageUrl = "~/Images/NedBankLogo.jpg ?";
else
if (Global.LoggedI nUser.FkBanksID .Value == 3)
BankLogoImage.I mageUrl = "~/Images/SmartecLogo.jpg ?";
}
[/CODE]
I'm trying to load a different logo depending on who's logged in but the code doesn't seem to be working, well, it only works after i've rebooted my PC. Even when I log out it doesn't show the image its supposed to show for an un-authenticated user.
I'm guessing its something to do with refreshing the page.. but even when I manually refresh the page it doesn't work.
Hope someone can help me asap, i've spent too much time on this already.
Thanks
[CODE=C#]
protected void Page_Load(objec t sender, EventArgs e)
{
if (!Page.User.Ide ntity.IsAuthent icated)
BankLogoImage.I mageUrl = SmartecLogoImag e.ImageUrl;
//Showing logged in user's bank logo
if (Global.LoggedI nUser.FkBanksID .Value == 1)
BankLogoImage.I mageUrl = "~/Images/ABSACashProtect or.jpg?";
else
if (Global.LoggedI nUser.FkBanksID .Value == 2)
BankLogoImage.I mageUrl = "~/Images/NedBankLogo.jpg ?";
else
if (Global.LoggedI nUser.FkBanksID .Value == 3)
BankLogoImage.I mageUrl = "~/Images/SmartecLogo.jpg ?";
}
[/CODE]
Comment