string str = "select username, LastActivityDate from aspnet_Users"; SqlDataAdapter da = new SqlDataAdapter(str, con); DataTable dt = new DataTable(); da.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind();
MembershipUser mu = Membership.GetUser("username"); EmailLabel.Text = mu.Email; IsOnlineLabel.Text = mu.IsOnline.ToString(); LastLoginDateLabel.Text = mu.LastLoginDate.ToString(); CreationDateLabel.Text = mu.CreationDate.ToString(); LastActivityDateLabel.Text = mu.LastActivityDate.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)