can you comment this code line by line as i am new to programing.
private void Page_Load(objec t sender, System.EventArg s e)
{
IPrincipal p = HttpContext.Cur rent.User;
if(p.IsInRole(" login"))
{
isAuthenticated = true;
}
if(!isAuthentic ated)
{
FormsAuthentica tion.SignOut();
RegisterStartup Script("Logout" ,"<script>docum ent.location.hr ef='../Login.aspx'</script>");
}
else
{
CustomPrincipal s = HttpContext.Cur rent.User as CustomPrincipal ;
irca_uid = s.getIRCAID();
intUserType = s.getUserType() ;
}
if (!Page.IsPostBa ck)
private void Page_Load(objec t sender, System.EventArg s e)
{
IPrincipal p = HttpContext.Cur rent.User;
if(p.IsInRole(" login"))
{
isAuthenticated = true;
}
if(!isAuthentic ated)
{
FormsAuthentica tion.SignOut();
RegisterStartup Script("Logout" ,"<script>docum ent.location.hr ef='../Login.aspx'</script>");
}
else
{
CustomPrincipal s = HttpContext.Cur rent.User as CustomPrincipal ;
irca_uid = s.getIRCAID();
intUserType = s.getUserType() ;
}
if (!Page.IsPostBa ck)
Comment