Posted on: 5/17/2011 11:10:31 AM | Views : 252

This is my Page_Load method:
 
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { // If querystring value is missing, send the user to ManageUsers.aspx string userName = Request.QueryString["user"]; if (string.IsNullOrEmpty(userName)) { Response.Redirect("admBoardUsers.aspx"); } // Get information about this user MembershipUser usr = Membership.GetUser(userName); if (usr == null) { Response.Redirect("admBoardUsers.aspx"); } lblUserName.Text = usr.UserName; chkApprove.Checked = usr.IsApproved; if (usr.LastLockoutDate.Year < 2000) { lblLastLockedOut.Text = string.Empty; } else { lblLastLockedOut.Text = ...

Go to the complete details ...