Repeater控件、DataList控件的属性:OnItemCommand 当在ItemTemplate 中所宣告的Button 或LinkButton 控件触发事件时,如果该控件CommandName 属性内容不是Edit、Cancel、Delete 或Update 时,便触发本事件。 前台页面: 删除 后台代码: protectedvoidRepeater_List_ItemCommand(object source, RepeaterCommandEventArgs e) { string strCommandName = e.CommandName; int modelID = Convert.ToInt32(e.CommandArgument); if (strCommandName.Equals("DeleteModel")) { new Maticsoft.BLL.job_news_category().DeletesByCatID(Convert.ToInt32(e.CommandArgument), this); Repeater_List_Bind(); } } #endregion

相关文章:

  • 2021-11-06
  • 2021-09-02
  • 2021-09-09
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-18
  • 2021-12-29
  • 2021-11-19
  • 2022-01-04
相关资源
相似解决方案