ajax 不同版本iis的web.config配置
摘要:1. IIS6.0 system.web节点中添加 <httpHandlers> <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" /> </httpHandlers>2. IIS7.5system.webServer节点中添加 <handlers&g...
阅读全文
posted @
2010-10-11 17:43
blair0807
阅读(684)
推荐(0)
url加密解密的一个cs类
摘要:网上很多人在问怎么实现Web系统URL传输(表单提交)参数加密。例如:要进行一个用户帐号编辑,要传递用户的ID,URL如下:http://localhost/mysystem/editAccounts.aspx?ID=2但又不想让别人知道这个用户的ID为2,恶意的使用者可能还会将2修改,改为别的用户ID。-----------------------------------------------...
阅读全文
posted @
2010-09-30 11:22
blair0807
阅读(163)
推荐(0)
asp.net抓取网页Email并存入记事本
摘要://从返回的网页源代码中过滤出Email并存入记事本private void GetEmail() { int strEndId = Convert.ToInt32(txtEnd.Text.Trim()); int strDiZengId = Convert.ToInt32(txtDiZengId.Text.Trim()); string Url = this.txtUrl.Text.Trim()...
阅读全文
posted @
2010-09-29 10:46
blair0807
阅读(282)
推荐(0)
.NET抓取Web网页数据分析实例
摘要:下面程序自动的读取网页显示的信息,类似于爬虫程序。比方说我们有一个系统,要提取BaiDu网站上歌曲搜索排名。分析系统在根据得到的数据进行数据分析。为业务提供参考数据。 为了完成以上的需求,我们就需要模拟浏览器浏览网页,得到页面的数据在进行分析,最后把分析的结构,即整理好的数据写入数据库。那么我们的思路就是: 1、发送HttpRequest请求。 2、接收HttpResponse返回的结果。得...
阅读全文
posted @
2010-09-29 10:44
blair0807
阅读(1186)
推荐(0)
asp.net发送邮件代码
摘要:asp.net发送邮件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--//body内容title标题email对方emailpublicstaticboolsendMessage(stringbody,stringtitle,stringemail...
阅读全文
posted @
2010-08-13 13:58
blair0807
阅读(155)
推荐(0)
【转】在VS2005中添加对FredCK.FCKeditorV2.dll的引用
摘要:在VS2005中添加对FredCK.FCKeditorV2.dll的引用 2008年02月26日 星期二 10:42 在VS2005中添加对FredCK.FCKeditorV2.dll的引用 1.在FCKPro工程浏览器上右键,选择添加引用(Add Reference…),找到浏览(Browse)标签,然后定位到你解压好的FredCK.FCKeditorV2.dll,确认就可以了。...
阅读全文
posted @
2010-08-12 15:18
blair0807
阅读(478)
推荐(0)
在VS2005中添加对FredCK.FCKeditorV2.dll的引用
摘要:在VS2005中添加对FredCK.FCKeditorV2.dll的引用 2008年02月26日 星期二 10:42 在VS2005中添加对FredCK.FCKeditorV2.dll的引用 1.在FCKPro工程浏览器上右键,选择添加引用(Add Reference…),找到浏览(Browse)标签,然后定位到你解压好的FredCK.FCKeditorV2.dll,确认就可以了。...
阅读全文
posted @
2010-08-12 15:02
blair0807
阅读(535)
推荐(0)
ASP.NET 窗体间传值
摘要:假设ParentForm.aspx 页面上有TextBox1文本框和Open按钮点击Open按钮弹出SubForm.aspx,SubForm.aspx页面上有TextBox1文本框和Close按钮点击Close按钮关闭SubForm.aspx页面,并把子页面SubForm.aspx文本框的值显示到父页面ParentForm.aspx 的文本框上。父窗体前台代码:[代码]父窗体后台代码: [代码]子...
阅读全文
posted @
2010-08-10 10:00
blair0807
阅读(190)
推荐(0)
求用户控件路径的写法
摘要:最简项目设为主站(默认是虚拟目录如:http://localhost:111/项目名/default.aspx),用绝对路径url(/Imags/foot..),但设计上显示不出来,浏览可以在控件后台使用路径转换,采用类似写法_imgPath = VirtualPathUtility.MakeRelative(Page.AppRelativeVirtualPath, "~/Imags/foot.g...
阅读全文
posted @
2009-09-07 16:37
blair0807
阅读(110)
推荐(0)
Asp.net中RegisterStartupScript方法的使用
摘要:MSDN如下说:允许 ASP.NET 服务器控件在 Page 中发出客户端脚本块。[Visual Basic]Public Overridable Sub RegisterStartupScript( _ByVal key As String, _ByVal script As String _)参数key标识脚本块的唯一键。script要发送到客户端的脚本的内容。以下是一些应用实例:打开一个新窗...
阅读全文
posted @
2009-09-07 16:35
blair0807
阅读(125)
推荐(0)