protected void Page_Load(object sender, EventArgs e) { if (Session == null || (string)Session["loggedin"] != "2") { Response.Redirect("default.aspx"); } // zodat btnclick niet upfuckt if (!Page.IsPostBack) { BLLtype BLLtype = new BLLtype(); DropStoreType.DataSource = BLLtype.selectAll(); DropStoreType.DataTextField = "name"; DropStoreType.DataValueField = "id"; DropStoreType.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Session == null || (string)Session["loggedin"] != "2") { Response.Redirect("default.aspx"); } BLLtype BLLtype = new BLLtype(); drpType.DataSource = BLLtype.selectAll(); drpType.DataTextField = "name"; drpType.DataValueField = "id"; drpType.DataBind(); addStoreMap.Width = 600; addStoreMap.Height = 250; } }