会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
森林小屋
IT学习园地
博客园
首页
新随笔
联系
订阅
管理
2008年7月14日
从前台页面取参数到sql的like中比较时参数的预处理
摘要: //从前台页面取参数到sql的like中比较时参数的预处理 this.keytxt.Text.Trim().Replace("'", "''").Replace("[", "[[]").Replace("]", "[]]").Replace("_", "[_]").Replace("%", "[%]")
阅读全文
posted @ 2008-07-14 17:43 湖底苍月
阅读(334)
评论(0)
推荐(0)
编辑
从前台页面取参数
摘要: //从前台页面取参数 parameter =new SqlParameter[] { DCommon.SqlHelper.MakeInParam("UserName", SqlDbType.NVarChar, 200, this.searchkey.text.Trim()) }; if(DCommon.SqlHelper.ExecuteScalar("sel...
阅读全文
posted @ 2008-07-14 17:42 湖底苍月
阅读(213)
评论(1)
推荐(0)
编辑
移页按钮
摘要: //当前页为首页或尾页时,首页,上一页按钮或下一页,尾页按钮不可用 protected void isFirstLastPage() { if (hdUserList.PageCount != 1) { if (hdUserList.CurrentPageIndex == 0) { th...
阅读全文
posted @ 2008-07-14 17:41 湖底苍月
阅读(201)
评论(0)
推荐(0)
编辑
公告