34 lines
811 B
C#
34 lines
811 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Mtxfw.shop._admin
|
|
{
|
|
public partial class admin_Delete_Data : Mtxfw.Utility.AdminPage
|
|
{
|
|
public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
|
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
if (!IsPostBack)
|
|
{
|
|
Btn_Delete.Attributes.Add("onclick", "return confirm(\"您确定要清空数据吗?\");");
|
|
}
|
|
|
|
Btn_Delete.Click += delegate(object s, EventArgs ex)
|
|
{
|
|
daoUser.DeleteData();
|
|
Response.Redirect(Request.Url.AbsolutePath);
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
} |