using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class admin_secure2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Write(User.Identity.Name + "
");
Response.Write(User.Identity.AuthenticationType + "
");
Response.Write(User.IsInRole("internal.toppro.net\research").ToString() + "
");
Response.Write(Roles.IsUserInRole("abhalesha", "research").ToString());
Response.Write(Roles.IsUserInRole("test1user", "RoleAdmin").ToString()+ "
dhfgh");
// LoginView1.Visible = Roles.IsUserInRole("test1user", "RoleAdmin");
// Roles.AddUserToRole(User.Identity.Name, "RoleAdmin");
}
}