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("~/"); } } }
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("~/"); } } }