1. In XXX. aspx
<Map Name = "navigation" runat = "server">
<Area shape = "rect" coords = "," href = "test. aspx" alt = "journal Introduction" target = "_ new">
<Area shape = "rect" coords = "81,60, 138-80" href = "test. aspx" alt = "target" target = "_ new">
<Area shape = "rect" coords = "150,60, 207,80" href = "userregister. aspx" target = "_ new" alt = "User Registration">
<Area shape = "rect" coords = "219,60, 276,80" href = "updateuserprofile. aspx" target = "_ new"
Alt = "User Information Update">
<Area shape = "rect" coords = "288, 60, 345, 80" href = "forgetpassword. aspx" target = "_ new" alt = "forgot password">
<Area shape = "rect" coords = "357,60, 414,80" href = "./papersubmissionprogram/papersubmissionprepare. aspx"
Target = "_ blank" alt =" Article Submit ">
<! -- Http://www.dotnet247.com/247reference/msgs/42/212769.aspx -->
<Area shape = "rect" id = "loginout" coords = "422,60, 479,80" href = "<% = xyz () %> "target =" bottomframe "alt =" User Logon ">
<! -- <Area shape = "rect" coords = "472,24, 517,37" href = "javascript: open_help ('/robohelp3.0/author/index.htm ')"
Alt = "help"/>
-->
</Map>
2. In XXX. aspx. CS
Protected string XYZ ()
{
String STR;
If (session ["username"]! = NULL & session ["password"]! = NULL)
{
STR = "logout. aspx ";
}
Else
{
STR = "Logon. aspx ";
}
Return STR;
}
Private void page_load (Object sender, system. eventargs E)
{
// Put user code to initialize the page here
If (session ["username"]! = NULL & session ["password"]! = NULL)
{
Label1.visible = true;
Label2.text = convert. tostring (session ["username"]);
// 1. http: // 63.236.18.31/FORUM/aspplus. asp? M = 758826 & t = 758826 & F = 36 & P = 1 #758854
// 2 http://dotnet247.com/247reference/msgs/15/77741.aspx
// 3. http://www.dotnet247.com/247reference/msgs/42/212769.aspx
// 4. http://www.dotnetspider.com/kb/Article1188.aspx
System. Web. UI. htmlcontrols. htmlimage IMG = (system. Web. UI. htmlcontrols. htmlimage) page. findcontrol ("img1 ");
IMG. Attributes. Add ("src", "image/toppic1.gif ");
}
Else
{
Label1.visible = false;
}
}