会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
C#ASP.NET程序员
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
下一页
2012年10月24日
通过HtmlAgilityPack实现网页信息抓取
摘要: 1. 下载Html Agility Pack,解压保存到本地 下载地址:http://htmlagilitypack.codeplex.com/ 1 void caijisoufun() 2 { 3 try 4 { 5 6 HtmlAgilityPack.HtmlDocument doc = ...
阅读全文
posted @ 2012-10-24 14:23 狄大人
阅读(411)
评论(0)
推荐(0)
2012年10月22日
Silverlight 自定义表格 转
摘要: 在项目中可能用到如下表格式结构: DataGrid绑定好象没有此功能,因此自己定义了一个MyGrid代码如下: 自己定义一个UserControl,在其中添加一人Grid控件然后设置行和列如下: UserControlx:Class= Hahaman.UI.MyGrid xmlns= http:/...
阅读全文
posted @ 2012-10-22 15:27 狄大人
阅读(440)
评论(0)
推荐(0)
存储过程学习1
摘要: CreateProc[dbo].[Proc_AddEmail]@Senderchar(36),--发件人@Subjectvarchar(255),--邮件主题@Addresseetext,--收件人的工号/学号@Messagetext,--邮件的内容@IsPublicbit--邮件是否公共asDEC...
阅读全文
posted @ 2012-10-22 15:24 狄大人
阅读(164)
评论(0)
推荐(0)
转Silverlight Navigation(多页面切换、传值)
摘要: 导航.简单的理解可以是从一个页面跳转到另外一个页面。在传统的ASP.NET网站中这种效果很容易实现。而在Silverlight中我们也同样可以,我们有两种方法来实现这个效果。 第一个选择是使用代码更改页面视图(修改容器Content属性),移除/添加User Control来实现导航,这个方法比较简...
阅读全文
posted @ 2012-10-22 15:05 狄大人
阅读(996)
评论(0)
推荐(0)
2012年10月19日
高写性能的磁盘存储的数据库
摘要: http://code.google.com/p/leveldb/ MongoDB
阅读全文
posted @ 2012-10-19 11:06 狄大人
阅读(176)
评论(0)
推荐(0)
2012年10月8日
调用远程页面并解析
摘要: 一、 获取远程页面数据请求方法 /// /// 获取远程服务器页面文件 /// /// 访问地址 /// 编码格式 /// string public string GetStringByUrl(string Url, System.Text.Encoding encoding) { if...
阅读全文
posted @ 2012-10-08 15:15 狄大人
阅读(528)
评论(0)
推荐(0)
2012年9月9日
天气预报webservice调用地址
摘要: http://www.webxml.com.cn/WebServices/WeatherWebService.asmx 通过访问http://m.weather.com.cn/data5/city.xml得到一级列表(省、直辖市、自治区)通过访问http://m.weather.com.cn/da...
阅读全文
posted @ 2012-09-09 12:39 狄大人
阅读(298)
评论(0)
推荐(0)
2012年9月8日
电话号码正则表达式
摘要: 1 /** 2 * 手机号码 3 * 移动:134[0-8],135,136,137,138,139,150,151,157,158,159,182,187,188 4 * 联通:130,131,132,152,155,156,185,186 5 * 电信:133,1349,153,180,189 ...
阅读全文
posted @ 2012-09-08 22:40 狄大人
阅读(315)
评论(0)
推荐(0)
2012年8月31日
生成一个8到15位随机密码
摘要: /// /// 获取一个8到15位的随机密码 /// /// private string GetRandomPwd() { StringBuilder Vchar = new StringBuilder(); Vchar.Append("0,1,2,3,4,5,6,7,8,9,");//数...
阅读全文
posted @ 2012-08-31 14:15 狄大人
阅读(1210)
评论(0)
推荐(2)
Application_BeginRequest事件过滤恶意提交
摘要: Global.asax 1 protected void Application_BeginRequest(object sender, EventArgs e) 2 { 3 //遍历Post参数,隐藏域除外 4 foreach (string i in this.Request.F...
阅读全文
posted @ 2012-08-31 14:05 狄大人
阅读(6174)
评论(0)
推荐(2)
上一页
1
2
3
4
5
6
7
8
下一页
公告