<asp:LinkButton ID="Link_change" OnClientClick='<%#ChangeStatus(Eval("OrderNumber")) %>' runat="server">发货</asp:LinkButton>

<asp:LinkButton ID="LinkButton1" OnClientClick="return confirm('是否删除')"  CommandArgument='<%#Eval("tid") %>'   OnClick="Delete" runat="server" Text="删除" >删除</asp:LinkButton>

  public void Delete(object sender, EventArgs e){try{int id = Convert.ToInt32((sender as LinkButton).CommandArgument);Model.C_shopGoodsType C_shopGoodsType = new BLL.C_shopGoodsType().GetModel(Convert.ToInt32(id));C_shopGoodsType.isdelete = 1;new BLL.C_shopGoodsType().Update(C_shopGoodsType);}catch{}}

转载于:https://www.cnblogs.com/mchuang/p/5219950.html

LinkButton 报错相关推荐

  1. 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题

    继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...

  2. Access to XMLHttpRequest at file from origin ‘null‘ has been blocked by CORS policy谷歌浏览器本地打开项目js文件报错

    Access to XMLHttpRequest at 'file:///xxxxx/PQ.BaseInfo.proto' from origin 'null' has been blocked by ...

  3. go build 编译报错 missing go.sum entry for module providing package

    go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...

  4. docker报错:driver failed programming external connectivity on endpoint, iptables:No chain by that name

    docker 报错: Error response from daemon: Cannot restart container hello: driver failed programming ext ...

  5. mybatis查询报错:com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string

    mybatis查询报错: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from strin ...

  6. mongo报错:not authorized on bb to execute command { create: \“xxx\“...}

    mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...

  7. restTemplate http请求报错:no suitable HttpMessageConverter found for response type and content type

    报错信息: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no sui ...

  8. 解决gitte提交报错 error: GE007: Your push would publish a private email address.

    错误情况: gitte提交报错,无法提交上去,报错如下: remote: Powered by GITEE.COM [GNK-6.0] remote: error: GE007: Your push ...

  9. JS Uncaught SyntaxError:Unexpected identifier异常报错原因及其解决方法

    最近在写ajax的时候,调用js方法,遇到了Uncaught SyntaxError:Unexpected identifier异常报错,开始搞不清原因,很苦恼. 以为是js方法参数个数和长度的问题, ...

最新文章

  1. C/S架构应用程序开发培训笔记
  2. FD_READ FD_WRITE触发时机
  3. 如何直接在github上预览html网页效果
  4. 除了缓存,Redis 都解决了哪些问题?
  5. ITK:Mersenne Twister随机整数生成器
  6. java图像处理之图像裁剪
  7. 开源纯C#工控网关+组态软件(八)表达式编译器
  8. anaconda使用github代码_使用这几款插件,能让你在GitHub看代码的效率翻倍
  9. ASP.NET---- Microsoft .NET Pet Shop 3.x(-)
  10. 我的内核学习笔记15:海思Hi3516平台GPIO使用记录
  11. 【Linux】解决Linux上解压jdk报错gzip: stdin: not in gzip format
  12. 菜鸟的学习之路(13) —TreeSet类的排序
  13. python如何读取文本_python 如何读取windows-1252格式文本?
  14. 物联网卡行业目前存在哪些问题
  15. redhat solutions
  16. 20-2.系统启动和内核管理centos7(unit,systemctl,grub2-)
  17. 中兴笔试c语言,中兴面试C语言题1
  18. 雄迈XM530AI / 550AI模组相关参数介绍
  19. Nescafé2 月之谜 题解
  20. 论文阅读【域泛化】:ECCV2018|Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net

热门文章

  1. 机房收费系统———报表
  2. 日语适合什么样的人群去学习啊
  3. Kotlin 异常处理
  4. 微信8.0不好玩?那是你打开方式不正确!
  5. 免费增加几个T电脑空间方法,拿去不谢
  6. 这几天怎么头痛的厉害!
  7. 【干货】让你薪资翻10倍的网站 大学生与职场人请收藏
  8. Mac笔记本 ScreenFlow 不能录下 Zoom 的声音
  9. COMException 此事务已明地或暗地被确认或终止
  10. 学习方法--结构主义和自然主义