上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

2005年11月15日

asp.net 1.1中url重写的问题!!!

摘要: 1:asp.net1.1中重写中可删节的问题!!!如以下的正则表达式:<Rules> <RewriterRule> <LookFors> <LookFor>~/(/d{4})/(/d{2})/.html</LookFor>---------<1> <LookFor>~/(/d{4})/(/d{2})/</LookFor>--------------<2> <LookFor>~/(/d{4})/(/d{2})</LookFor>-----------<3> 阅读全文

posted @ 2005-11-15 18:38 老代哥哥 阅读(151) 评论(0) 推荐(0) 编辑

2005年11月9日

生成验证码

摘要: using System;using System.Web;using System.Drawing;/// <summary>/// Summary description for CheckCode/// </summary>public class CheckCode:System.Web.IHttpHandler{public CheckCode(){//// TODO: Add constructor logic here//} #region IHttpHandler 成员 bool IHttpHandler.IsReusable { get { retur 阅读全文

posted @ 2005-11-09 11:09 老代哥哥 阅读(101) 评论(0) 推荐(0) 编辑

2005年11月8日

asp.net 2.0中的URL重写以及urlMappings问题(3)

摘要: 其中ResponseFilter可以用另外一钟方式实现,可是一直没找到好更好的方法,本来想用继承一个Page类来做所有页面的基类,但是处理action时不知道要在哪个方法中override这个东东参考了一些网友的方法!!特别是.Text的源码,可惜.Text的不支持“可删节”((??不知道我有没有搞错))还有好些bug。希望各位DX帮忙改进,我用的是web express 版!!win2003中 阅读全文

posted @ 2005-11-08 10:06 老代哥哥 阅读(106) 评论(0) 推荐(0) 编辑

asp.net 2.0中的URL重写以及urlMappings问题(2)

摘要: 接上篇:没有进行重写的页面重写的页面:Click之前的执行效果图click之后的效果图: 阅读全文

posted @ 2005-11-08 09:57 老代哥哥 阅读(92) 评论(0) 推荐(0) 编辑

asp.net 2.0中的URL重写以及urlMappings问题

摘要: 在asp.net2.0中的urlMappings倒是非常好用,可惜暂不支持正则表达式,不过,好在如果用IHttpModule的话不管什么样的请求都会先经过IHttpModule这样就为URL重写提供了一个好机会:下面是我写的一个IHttpModule:using System;using System.Web;public class ReWriteModule:IHttpModule {public ReWriteModule(){} public override string ToString() { return this.GetType().ToString(); }void IH. 阅读全文

posted @ 2005-11-08 09:42 老代哥哥 阅读(145) 评论(0) 推荐(0) 编辑

2005年11月7日

JpgHandler :ZT

摘要: using System;using System.Web;public class JpgHandler : IHttpHandler{ public void ProcessRequest(HttpContext context) { string FileName = context.Server.MapPath(context.Request.FilePath); if (context.Request.ServerVariables["HTTP_REFERER"] == null) { context.Response.ContentType = "im 阅读全文

posted @ 2005-11-07 11:35 老代哥哥 阅读(143) 评论(0) 推荐(0) 编辑

2005年11月1日

存储过程动态配直3

摘要: using System;using System.Xml ;using System.Xml.Serialization ;using System.Xml.XPath ;using System.Data ;using System.Data.SqlClient ;using System.Reflection;namespace DhzShop.Config{/// <summary>/// Procedure 的摘要说明。/// </summary>public class Procedure{public Procedure(){//// TODO: 在此处添 阅读全文

posted @ 2005-11-01 16:41 老代哥哥 阅读(125) 评论(0) 推荐(0) 编辑

2005年10月29日

MinGW C++

摘要: class IntArray {public:// 构造函数explicit IntArray( int size = DefaultArraySize );IntArray( int *array, int array_size );IntArray( const IntArray &rhs );// 虚拟析构函数virtual ~IntArray() ;// 等于和不等于操作bool operator==( const IntArray& ) const;bool operator!=( const IntArray& ) const;IntArray& o 阅读全文

posted @ 2005-10-29 12:11 老代哥哥 阅读(188) 评论(0) 推荐(0) 编辑

2005年10月21日

动态修改asp.net的title值

摘要: using System;using System.IO ;using System.Text ;using System.Text.RegularExpressions ;namespace dhzCry{public class FilterModule:System.Web.IHttpModule{public FilterModule(){}protected void OnPreSendRequestContent(Object sender, EventArgs e){System.Web.HttpApplication myContext = (System.Web.HttpAp 阅读全文

posted @ 2005-10-21 14:38 老代哥哥 阅读(197) 评论(0) 推荐(0) 编辑

///通用的加载插件的代码:转贴

摘要: ///通用的加载插件的代码:public class plugIn{/**//// <summary>/// 动态装载并创建类型,该类型拥有指定接口/// </summary>/// <param name="className">类型名称</param>/// <param name="interfaceName">指定的接口名称</param>/// <param name="param">指定构造函数的参数(null或空的数组表示调用默认构造函数 阅读全文

posted @ 2005-10-21 11:20 老代哥哥 阅读(207) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 17 下一页

导航