随笔分类 -  .Net

Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the serve
摘要:最近做一个页面部份数据验证时,遇到了下面的一个问题Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 的问... 阅读全文
posted @ 2010-05-12 16:43 MissSoft 阅读(1003) 评论(0) 推荐(0)
HttpContext.Cache和HttpRuntime.Cache
摘要:ASP.Net中可以方便的使用缓存,对于Cache,一般有两种方式调用:HttpContext.Cache和HttpRuntime.Cache。那么这两种Cache有什么区别呢? HttpRuntime.Cache:获取当前应用程序的 Cache。 HttpContext.Cache:为当前 HTTP 请求获取 Cache 对象。 那么是不是说对于HttpRuntime.Cache就是应用程序级,... 阅读全文
posted @ 2010-03-24 15:16 MissSoft 阅读(857) 评论(0) 推荐(0)
httpRuntime 问题
摘要:httpRuntime是配置asp.net http运行时设置,以确定如何处理对asp.net应用程序的请求。 executionTimeout:表示允许执行请求的最大时间限制,单位为秒 maxRequestLength:指示 ASP.NET 支持的最大文件上载大小。该限制可用于防止因用户将大量文件传递到该服务器而导致的拒绝服务攻击。指定的大小以 KB 为单位。默认值为 4096 KB (4 MB... 阅读全文
posted @ 2010-03-24 15:08 MissSoft 阅读(346) 评论(0) 推荐(0)
浅谈asp.net中的AsyncPostBackTrigger
摘要:获取或设置触发对 UpdatePanel 控件进行更新的回发控件事件。某些控件位于 UpdatePanel 之外,无法实现异步回送,或者由于 UpdatePanel 的 UpdateMode 和 ChildrenAsTriggers 设置禁止了该控件对该 UpdatePanel 的异步回送。可以通过 AsyncPostBackTrigger 来实现异步回送。<asp:ScriptManage... 阅读全文
posted @ 2010-03-24 14:11 MissSoft 阅读(1455) 评论(0) 推荐(0)
.net获取ip地址
摘要:/// 获得客户端IP /// /// <returns></returns> private string getIp() { // 穿过代理服务器取远程用户真实IP地址 string Ip = string.Empty; if (Request.ServerVariables["HTTP_VIA"] != null) { if (Request.ServerVaria... 阅读全文
posted @ 2010-03-01 15:37 MissSoft 阅读(2620) 评论(0) 推荐(0)
.net下实现输入数字的冒泡排序
摘要:protected void btnSort_Click(object sender, EventArgs e) { string array1 = txtSort.Text.Trim(); string[] array21=array1.Split(','); int dxiao = array21.Length; int[] array = new int[dxiao]; int temp=0... 阅读全文
posted @ 2010-03-01 13:22 MissSoft 阅读(276) 评论(0) 推荐(0)