摘要: 代码如下,请给出具体修改代码 public void AddCategory(string nCategoryName, int nImgId, int nBelongToId, int nShopId, int nSortId) { int CategoryId = 0; string cmdText = "Select top 1 CategoryId from ProductCategory where CategoryName='' ROWLOCK"; SqlConnection conn = new SqlConnection(Connection 阅读全文
posted @ 2012-10-24 22:59 大智若简 阅读(447) 评论(0) 推荐(0) 编辑
摘要: Jquery中绑定事件有三种方法:以click事件为例 (1)target.click(function(){}); (2)target.bind("click",function(){}); (3)target.live("click",function(){});第一种方法很好理解,其实就和普通JS的用法差不多,只是少了一个on而已第二、三种方法都是绑定事件,但是二者又有很大的不同,下面着重讲解一下,因为这个如果用到Jquery的框架的话是用的挺多的,尤其要注意二者的区别。【bind和live的区别】 live方法其实是bind方法的变种,其基本功能 阅读全文
posted @ 2012-10-24 13:23 大智若简 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 对于这样一个表character,id为主键:id name gender race--------------------------------------------------------1 JimRaynor male terran2 SarahKerrigan femal zerg3 Zeratul unknown protoss--------------------------------------------------------要实施一个“有则更新,无则插入”的操作可以这样做declare count int;Select count(*) into count fro 阅读全文
posted @ 2012-10-24 08:03 大智若简 阅读(2652) 评论(0) 推荐(0) 编辑