摘要: 在web.config中的System.Web加上:identity impersonate="true" userName="temp" password="123456"/注意要在Web服务器和文件服务器要同时加上这个帐户1.web服务器上的temp帐户隶属性IIS_WPG和Users2.文件服务器要将共享目录的读写权限赋给temp另:在web.config加上这个节点后,会导致附加进程调试IIS失败.建议本机调试时,注释掉此节点,发布到服务器再加上这个节点! 阅读全文
posted @ 2010-12-15 13:18 ahui 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 修改:C:\Program Files\Mozilla Firefox\greprefs\all.js在文件最后添加:pref("network.security.ports.banned.override", "101"); 阅读全文
posted @ 2010-12-09 13:30 ahui 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1///<summary>2///将文本转化为Unicode编码(自适应4种编码)3///</summary>4///<paramname="fileName">&... 阅读全文
posted @ 2010-10-11 17:35 ahui 阅读(260) 评论(0) 推荐(0) 编辑
摘要: MVC服务器端:1.在controller中验证用户输入,如果验证失败,执行[代码]2.在View视图某一个地方放置[代码]JS客户端:1.引放相应的JS文件[代码]2.在View视图某一个地方放置[代码]3.以常规的submit()方式提交,在页面最下面加入以下JS代码[代码]4.以Ajax方式提交到服务器的,JS代码要改为:[代码]要支持regex方式的验证,请在jquery.validate... 阅读全文
posted @ 2010-10-08 11:40 ahui 阅读(5431) 评论(0) 推荐(2) 编辑
摘要: 1.Global.cs代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1///summary2///每个请求开始切换语言3////summary4///paramname="sender"/param5///paramname="e"/param6protectedvoidApplication_BeginRequest(Objectsender,EventArgse)7{8stringculture="en-US"; 阅读全文
posted @ 2010-09-30 11:55 ahui 阅读(379) 评论(0) 推荐(0) 编辑
摘要: function jsonp_Request(url, data, success, timeout) { var finish = false; var theHead = document.getElementsByTagName("head")[0] || document.documentElement; var scriptControll = document.createElemen... 阅读全文
posted @ 2010-07-14 16:44 ahui 阅读(879) 评论(0) 推荐(0) 编辑
摘要: 1.MVC控制器 2.Javascript 阅读全文
posted @ 2010-05-14 10:17 ahui 阅读(1427) 评论(1) 推荐(0) 编辑
摘要: public void ProcessRequest(HttpContext context){ string path = context.Request.QueryString["path"]; string name = context.Request.QueryString["name"]; if(path == null || path.Trim() == string... 阅读全文
posted @ 2006-04-21 20:14 ahui 阅读(632) 评论(0) 推荐(0) 编辑