• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ASP.NET系统开发-生Blog
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 下一页
2010年5月29日
C#取得Web程序和非Web程序的根目录的N种取法
摘要: 几种方法如下:非Web程序1.AppDomain.CurrentDomain.BaseDirectory //浏览器安装路径2.Environment.CurrentDirectory3.HttpRuntime.BinDirectoryThe path to the current application's/bin directory.Web程序HttpCurrent.Context.Serve... 阅读全文
posted @ 2010-05-29 11:12 生 阅读(4762) 评论(0) 推荐(1)
2010年5月7日
正则表达大全
摘要: $  匹配行结束符。例如正则表达式weasel$ 能够匹配字符串"He's a weasel"的末尾,但是不能匹配字符串"They are a bunch of weasels."。   ^  匹配一行的开始。例如正则表达式^When in能够匹配字符串"When in the course of human events"的开始,但是不能匹配"What and When in the"。  * ... 阅读全文
posted @ 2010-05-07 23:59 生 阅读(56703) 评论(0) 推荐(4)
2010年5月2日
ASP.NET C# URL加密解密
摘要: using System.Security.Cryptography;using System.IO;using System.text;/// <summary> /// 加密 /// </summary> /// <param name="str"></param> /// <param name="key"></param&g... 阅读全文
posted @ 2010-05-02 01:25 生 阅读(6780) 评论(1) 推荐(1)
2010年3月30日
获取 SQL 列名
摘要: SELECT name FROM syscolumnsWHERE (id =(SELECT idFROM sysobjectsWHERE (id = OBJECT_ID('列名'))))ORDER BY colid 阅读全文
posted @ 2010-03-30 16:50 生 阅读(1747) 评论(0) 推荐(0)
2010年2月8日
显示与隐藏DIV
该文被密码保护。 阅读全文
posted @ 2010-02-08 08:50 生 阅读(1) 评论(0) 推荐(0)
2010年2月6日
XML树菜单
该文被密码保护。 阅读全文
posted @ 2010-02-06 11:29 生 阅读(3) 评论(0) 推荐(0)
2010年2月4日
设置IIS过期时间
摘要: 在IIS里面右键点击默认网站->主目录->应用程序设置里点配置->选项->启用会话状态->会话超时那里设置时间 在web.config中设置Session过期时间方法: C#代码 <system.web> <sessionStatemode="InProc"timeout="60"/> </system.web> aspx文件中设置... 阅读全文
posted @ 2010-02-04 10:38 生 阅读(3168) 评论(0) 推荐(0)
2010年2月1日
JS 55种小技巧
摘要: 1.oncontextmenu="window.event.returnvalue=false"将彻底屏蔽鼠标右键<tableborderoncontextmenu=return(false)><td>no</table>可用于table2.<bodyonselectstart="returnfalse">取消选取、防止复制3.onpaste="re... 阅读全文
posted @ 2010-02-01 17:42 生 阅读(586) 评论(0) 推荐(0)
C#正则表达式判断输入日期格式是否正确
摘要: /// <summary> /// 是否为日期型字符串 /// </summary> /// <param name="StrSource">日期字符串(2008-05-08)</param> /// <returns></returns> public static bool IsDate(string StrSource)... 阅读全文
posted @ 2010-02-01 10:27 生 阅读(15492) 评论(2) 推荐(0)
2010年1月27日
获取对象属性值
摘要: public static List<TBS.Model.FieldUpdate> CheckUpdateField(object o1, object o2, ref int result) { Type type1 = o1.GetType(); Type type2 = o2.GetType(); if (type1 != type2) { result = -1; return... 阅读全文
posted @ 2010-01-27 16:59 生 阅读(1404) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3