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(); } }
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(); } }