2 using System
.Collections
.Generic
;
6 using System
.Web
.UI
.WebControls
;
10 public partial class Message
: System
.Web
.UI
.Page
12 protected string TargetUsername
;
13 protected string Username
;
15 protected void Page_Load(object sender
, EventArgs e
)
17 Username
= string.IsNullOrEmpty(HttpContext
.Current
.User
.Identity
.Name
) ? "" : (string)HttpContext
.Current
.Session
["username"];
18 TargetUsername
= Request
.Params
["target"];
20 if (string.IsNullOrEmpty(TargetUsername
))
22 Response
.Redirect("~/404.aspx");