Beispiel #1
0
 protected void gr1_ItemCommand(object source, RepeaterCommandEventArgs e)
 {
     if (e.CommandName == "delvo")
     {
         try
         {
             int volumeId = Convert.ToInt32(e.CommandArgument);
             int count    = IA.AudelVolume(volumeId);
             if (count > 0)
             {
                 ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "ok", "<script type='text/javascript'>alert('删除成功!');this.location.href=this.location.href;</script>", false);
             }
         }
         catch
         {
             ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "err", "<script type='text/javascript'>alert('请先删除卷下章节!');</script>", false);
         }
     }
 }
Beispiel #2
0
 public int AudelVolume(int volumeId)
 {
     return(IA.AudelVolume(volumeId));
 }