• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
森林小屋
IT学习园地
博客园 首页 新随笔 联系 订阅 订阅 管理

2008年7月14日

从前台页面取参数到sql的like中比较时参数的预处理
摘要: //从前台页面取参数到sql的like中比较时参数的预处理 this.keytxt.Text.Trim().Replace("'", "''").Replace("[", "[[]").Replace("]", "[]]").Replace("_", "[_]").Replace("%", "[%]") 阅读全文
posted @ 2008-07-14 17:43 湖底苍月 阅读(344) 评论(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 湖底苍月 阅读(219) 评论(1) 推荐(0)
 
移页按钮
摘要: //当前页为首页或尾页时,首页,上一页按钮或下一页,尾页按钮不可用 protected void isFirstLastPage() { if (hdUserList.PageCount != 1) { if (hdUserList.CurrentPageIndex == 0) { th... 阅读全文
posted @ 2008-07-14 17:41 湖底苍月 阅读(207) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3