LinkButton 报错
<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 报错相关推荐
- 继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错? springboot 两种方式稳定解决跨域问题
继承WebMvcConfigurer 和 WebMvcConfigurerAdapter类依然CORS报错???springboot 两种方式稳定解决跨域问题! 之前我写了一篇文章,来解决CORS报错 ...
- 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 ...
- go build 编译报错 missing go.sum entry for module providing package
go build 编译报错 missing go.sum entry for module providing package 解决方法 // 移除未使用的依赖 go mod tidy 再次编译,就可 ...
- 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 ...
- mybatis查询报错:com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from string
mybatis查询报错: com.mysql.cj.exceptions.DataConversionException: Cannot determine value type from strin ...
- mongo报错:not authorized on bb to execute command { create: \“xxx\“...}
mongo报错: {"ok" : 0,"errmsg" : "not authorized on bb to execute command { cr ...
- restTemplate http请求报错:no suitable HttpMessageConverter found for response type and content type
报错信息: org.springframework.web.client.UnknownContentTypeException: Could not extract response: no sui ...
- 解决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 ...
- JS Uncaught SyntaxError:Unexpected identifier异常报错原因及其解决方法
最近在写ajax的时候,调用js方法,遇到了Uncaught SyntaxError:Unexpected identifier异常报错,开始搞不清原因,很苦恼. 以为是js方法参数个数和长度的问题, ...
最新文章
- C/S架构应用程序开发培训笔记
- FD_READ FD_WRITE触发时机
- 如何直接在github上预览html网页效果
- 除了缓存,Redis 都解决了哪些问题?
- ITK:Mersenne Twister随机整数生成器
- java图像处理之图像裁剪
- 开源纯C#工控网关+组态软件(八)表达式编译器
- anaconda使用github代码_使用这几款插件,能让你在GitHub看代码的效率翻倍
- ASP.NET---- Microsoft .NET Pet Shop 3.x(-)
- 我的内核学习笔记15:海思Hi3516平台GPIO使用记录
- 【Linux】解决Linux上解压jdk报错gzip: stdin: not in gzip format
- 菜鸟的学习之路(13) —TreeSet类的排序
- python如何读取文本_python 如何读取windows-1252格式文本?
- 物联网卡行业目前存在哪些问题
- redhat solutions
- 20-2.系统启动和内核管理centos7(unit,systemctl,grub2-)
- 中兴笔试c语言,中兴面试C语言题1
- 雄迈XM530AI / 550AI模组相关参数介绍
- Nescafé2 月之谜 题解
- 论文阅读【域泛化】:ECCV2018|Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net