博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年2月25日

摘要: <%@ WebHandler Language="C#" class="HandlerValidate_" %>using System;using System.Web;using System.Web.SessionState;using System.Drawing;public class HandlerValidate_ : IHttpHandler,IRequiresSessionState { public void ProcessRequest (HttpContext context) { string checkCode 阅读全文

posted @ 2011-02-25 16:44 itcfj 阅读(205) 评论(0) 推荐(0)

摘要: js代码: <script type="text/javascript"> String.prototype.trim = function() { return this.replace(/(^\s+)|\s+$/g, ""); } var x = 0; function myRefresh() { var httpRequest = new ActiveXObject("microsoft.xmlhttp"); httpRequest.open("GET", "sessionout.asp 阅读全文

posted @ 2011-02-25 15:56 itcfj 阅读(602) 评论(0) 推荐(0)

摘要: 四行代码动态修改web.config文件appsettings配置节内容代码在VS2005测试顺利通过。Configuration config = System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(Request.ApplicationPath); //创建配置文件对象config.AppSettings.Settings[KEY].Value=VALUE; //设置KEY的值为VALUEconfig.Save(ConfigurationSaveMode.Modified); //保存设置Config 阅读全文

posted @ 2011-02-25 09:33 itcfj 阅读(418) 评论(0) 推荐(1)