• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






tronic

pkdoor
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2007年4月17日

获取图片地址代码(严格按HTML编写的图片地址)
摘要: protected string GetPic(string tempstr) { string str = tempstr.ToLower();int stop; int start = str.IndexOf("src=\""); if (start > 0) { stop = str.IndexOf("\... 阅读全文
posted @ 2007-04-17 19:59 tronic 阅读(776) 评论(1) 推荐(0)
 
正则表达式获取内容中的数字
摘要: private int GetNumber(string par) { string strTempContent =par; strTempContent = System.Text.RegularExpressions.Regex.Replace(strTempContent, @"[^\d]*", ""); return Convert.ToInt32(strTempConte... 阅读全文
posted @ 2007-04-17 19:41 tronic 阅读(327) 评论(0) 推荐(0)
 
Asp.Net性能优化.
摘要: --> (一).选择会话状态存储方式 在Webconfig文件配置: Asp.net有三种方式存储会话状态信息: 1. 存储在进程中: 属性mode = InProc 特点: 具有最佳的性能,速度最快,但不能跨多台服务器存储共享. 2. 存储在状态服务器中: 属性mode = "StateServer" 特点:... 阅读全文
posted @ 2007-04-17 19:22 tronic 阅读(211) 评论(0) 推荐(0)
 
生成n位不同的验证码
摘要: public string RandomNum(int n) //{ string strchar = "0,1,2,3,4,5,6,7,8,9" ; string[] VcArray = strchar.Split(',') ; string VNum = "" ;//由于字符串很短,就不用StringBuilder了 int temp = -1 ; //记录上次随机数值,尽量避免产生几... 阅读全文
posted @ 2007-04-17 19:21 tronic 阅读(181) 评论(0) 推荐(0)
 
Asp.Net细节性问题技巧精萃
摘要: 1.Asp.Net中几种相似的标记符号: 解释及用法 答: : 是在绑定控件DataBind()方法执行时被执行,用于数据绑定 如: : 在程序执行时被调用,可以显示后台变量值 如: *.aspx中: *.cs中: protected string aaa="姓名"; ... 阅读全文
posted @ 2007-04-17 19:16 tronic 阅读(167) 评论(0) 推荐(0)