摘要:如果你的Asp.Net程序执行时碰到这种错误:“验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。”那么说明你没有让你的应用程序使用统一的machineKey,那么machineKey的作用是什么呢?按照MSDN的标...
阅读全文
摘要:ASP.NET machineKey的作用如果你的Asp.Net程序执行时碰到这种错误:“验证视图状态 MAC 失败。如果此应用程序由网络场或群集承载,请确保 <machineKey> 配置指定了相同的 validationKey 和验证算法。不能在群集中使用 AutoGenerate。”那么说明你没有让你的应用程序使用统一的machineKey,那么machi...
阅读全文
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> public static string UploadFileEx( string url, System.Web.HttpFileCollection files, ...
阅读全文
摘要:using System;using System.Runtime.InteropServices;namespace post{ /// /// IECache 的摘要说明。 /// public class IECache { public IECache() { // // TODO: ...
阅读全文
摘要:引入命名空间using System.IO;using System.Net;using System.Text;using System.Text.RegularExpressions;//以GET方式抓取远程页面内容 public string Get_Http(string tUrl) { string strResult; try {...
阅读全文
摘要:WebForm2 -----------------------namespace dropDown{ /**//// /// WebForm2 的摘要说明。 /// public class WebForm2 : System.Web.UI.Page { protected System.Web.UI.WebControls.DropDownList...
阅读全文
摘要:"^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9...
阅读全文