protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["LoginId"] == null)
     {
         Response.Redirect("../Login");
     }
     else
     {
         int id = DbMethod.GenerateId("ProjectId", "Project");
         LblPojectId.Text = id.ToString();
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["LoginId"] == null)
     {
         Response.Redirect("../Login");
     }
     else
     {
         int id = DbMethod.GenerateId("questionId", "Forums");
         qIdLbl.Text = id.ToString();
     }
 }