Ejemplo n.º 1
0
        protected void LoginButton_Click(object sender, EventArgs e)
        {
            if (Login1.UserName == "Admin")
            {
                if (Login1.Password == "12345")
                {
                    Response.Redirect("/AdminDashboard.aspx?user="******"/dashboard.aspx?user=" + Login1.UserName);
                            }
                        }
                    }
                }
                catch (Exception)
                {
                    throw;
                }
            }
        }
Ejemplo n.º 2
0
 protected void Button1_Click(object sender, EventArgs e)
 {
     addingUserDataContext add = new addingUserDataContext();
     add.ExecuteCommand("TRUNCATE TABLE [links]");
     Response.Redirect("/AdminDashboard.aspx?user="******"user"]);
 }