Esempio n. 1
0
 protected void lbFileSharing_DoubleClick(object sender, EventArgs e)
 {
     d.Open();
     if (lbFileSharing.SelectedItem != null)
     {
         selectedCategorie = lbFileSharing.SelectedItem.ToString();
         if (selectedBestand != null)
         {
             return;
         }
         if (lbFileSharing.SelectedItem.ToString().Length > 8)
         {
             bm.BestandenVullen();
             selectedBestand    = lbFileSharing.SelectedItem.ToString();
             Session["Bericht"] = selectedBestand;
             Response.Redirect("Bericht.aspx");
         }
         foreach (categorie c in bm.Categorieen)
         {
             try
             {
                 if (c.OuderCategorie.ToString() == selectedCategorie)
                 {
                     lbFileSharing.Items.Add(c.ToString());
                 }
             }
             catch
             { }
         }
         RefreshList(selectedCategorie);
     }
     d.Close();
 }
Esempio n. 2
0
 protected void Button1_click(object sender, EventArgs e)
 {
     d.Open();
     if (d.Login(this.inlognaam.Text, this.wachtwoord.Text))
     {
         Session["gebruiker"] = inlognaam.Text;
         FormsAuthentication.RedirectFromLoginPage(inlognaam.Text, Persist.Checked);
     }
     else
     {
         this.Page.ClientScript.RegisterStartupScript(this.GetType(), "ex", "alert('Gegevens komen niet overeen.');", true);
     }
 }