コード例 #1
0
ファイル: Movie.aspx.cs プロジェクト: xxfss2/Integral
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         MovieAct userAct = new MovieAct();
         Ruserlist.DataSource = userAct.GetAll ();
         Ruserlist.DataBind();
     }
 }
コード例 #2
0
ファイル: Movie.aspx.cs プロジェクト: xxfss2/Integral
 protected void BTadd0_Click(object sender, EventArgs e)
 {
     string ids= HiddenField1.Value;
     try
     {
         MovieAct act = new MovieAct();
         act.Del(ids);
         MessageBox("删除成功!");
         Ruserlist.DataSource = act.GetAll();
         Ruserlist.DataBind();
     }
     catch (Exception ex)
     {
         MessageBox(ex.Message);
     }
 }