protected void Page_Load(object sender, EventArgs e) { var usr = (User)Session["LoggedInUser"]; if (usr == null) { Response.Redirect("~/Login.aspx"); } else if (!IsPostBack) { TypeDropDn.DataBind(); TagDropDn.DataBind(); TypeDropDn_SelectedIndexChanged(TypeDropDn, e); GridView1.DataBind(); } }