V
VR
Hi.
I have an ASP.NET web page, with a logo written in plain
HTML. One of the tags is an image that should read
either "sign on" or "sign off" depending on whether a user
has been authenticated:
<a href="javascript:void(FollowLink('SignOn'));">
<IMG src="/graphics/TopSignOn.gif" name="TopSignOn">
</a>
I'd like to determine which image to show in my Page_Load
() in ASP.NET. Something like:
void Page_Load()
{
if (Request.IsAuthenticated)
{
obj.src = "/graphics/TopSignOff.gif";
}
else
{
obj.src = "/graphics/TopSignOn.gif";
}
}
I am not sure, though, how to declare and/or find that
obj. Is it possible? Or should I choose a different
approach?
Thanks for the help.
VR
I have an ASP.NET web page, with a logo written in plain
HTML. One of the tags is an image that should read
either "sign on" or "sign off" depending on whether a user
has been authenticated:
<a href="javascript:void(FollowLink('SignOn'));">
<IMG src="/graphics/TopSignOn.gif" name="TopSignOn">
</a>
I'd like to determine which image to show in my Page_Load
() in ASP.NET. Something like:
void Page_Load()
{
if (Request.IsAuthenticated)
{
obj.src = "/graphics/TopSignOff.gif";
}
else
{
obj.src = "/graphics/TopSignOn.gif";
}
}
I am not sure, though, how to declare and/or find that
obj. Is it possible? Or should I choose a different
approach?
Thanks for the help.
VR