Example #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                if (TextBox1.Text == "Password11")
                {
                    FotoGol_Data.FotoGolEntryDataSource ds = new FotoGol_Data.FotoGolEntryDataSource();
                    ds.DeleteAll();

                    Response.Redirect("~/");
                }
            }
        }
Example #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                if (TextBox1.Text == "Password11")
                {
                    FotoGol_Data.FotoGolEntryDataSource ds = new FotoGol_Data.FotoGolEntryDataSource();
                    ds.DeleteAll();

                    Response.Redirect("~/");
                }
            }
        }