有个部落

一晃就半个十年,思念如潮...
随笔 - 106, 文章 - 0, 评论 - 22, 阅读 - 93035
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  ASP.NET

摘要:转自OSChina, 原文:http://www.oschina.net/translate/ajax-cross-origin-http-request背景跨源HTTP请求(也称跨域AJAX请求)是大多数Web开发人员可能遇到的一个问题,根据同源策略,浏览器将限制客户端的JavaScript在一个... 阅读全文

posted @ 2014-04-30 23:49 Leo.W 阅读(266) 评论(0) 推荐(0) 编辑

摘要:原文:http://support.microsoft.com/kb/829743/en-usTroubleshooting the "View state is invalid" error with ASP.NETView products that this article applies to.On This PageExpand all|Collapse allSUMMARYThis article describes some techniques that can be used to debug and to resolve problems with vi 阅读全文

posted @ 2012-06-19 00:22 Leo.W 阅读(376) 评论(0) 推荐(0) 编辑

摘要:Original:http://www.c-sharpcorner.com/UploadFile/technoNet/SessionTimeout02192009052301AM/SessionTimeout.aspxByTanimaFebruary 19, 2009I have been exploring Session Timeouts in ASP.Net for some time now. Those of you working on Web Applications would have surely experienced unexpected timeouts result 阅读全文

posted @ 2011-10-12 17:29 Leo.W 阅读(274) 评论(0) 推荐(0) 编辑

摘要:作者:Infinities Loop 概述 ViewState是一个被误解很深的动物了。我希望通过此文章来澄清人们对 ViewState的一些错误认识。为了达到这个目的,我决定从头到尾详细的描述一下整个ViewState的工作机制,其中我会同时用一些例子说明我文 章中的观点,结论。比如我会用静态控件(declared controls)和动态控件(dynamic controls)两个方面来说明同一个问题。 现在有关ViewState的文章可谓多如牛毛,你可能会说再写有关 ViewState的文章无异于炒剩饭(我这篇文章便是:D)。但是我却不这么认为,如果把ViewState看成一匹野马的话. 阅读全文

posted @ 2011-10-08 11:59 Leo.W 阅读(262) 评论(0) 推荐(0) 编辑

摘要:Invalid character in a Base-64 string(ASP.NET) Filed under: ASP.NET 2.0,programming — delroger @ 11:16 am Just came across a very peculiar problem with a website I’m developing. Some visitors to the website hit an error every time they click one of the controls on a particular page; the pag... 阅读全文

posted @ 2011-10-08 11:25 Leo.W 阅读(997) 评论(0) 推荐(0) 编辑

摘要:We have been getting some questions regarding viewstate-related errors like "The viewstate is invalid for this page and might be corrupted" This error is usually caused by the asp worker process or the server recycling. By default, ASP.NET encrypts the viewstate using an Autogenerated Key 阅读全文

posted @ 2011-10-08 11:06 Leo.W 阅读(404) 评论(0) 推荐(0) 编辑

摘要:原文:http://weblogs.asp.net/davidfowler/archive/2009/03/09/invalid-postback-or-callback-argument-in-the-datacontrols.aspx Invalid postback or callback argument I'm sure many of you have seen this error message when developing your web application:... 阅读全文

posted @ 2011-10-06 16:35 Leo.W 阅读(375) 评论(0) 推荐(0) 编辑

摘要:原文: http://www.noupe.com/css/100-great-css-menu-tutorials.htmlNavigation is such an important part of your website. It’s how your visitors navigate to the main areas of your site and makes it easy for them to find your good content. CSS is of course the perfect language for designing beautiful na... 阅读全文

posted @ 2011-09-10 12:09 Leo.W 阅读(268) 评论(0) 推荐(0) 编辑

摘要:ASP.NET AJAX and Sys.Webforms.PageRequestManagerServerErrorException by Ted Jardine Using ASP.NET AJAX extensively in my latest project I've been sporadically running into the Sys.WebForms.PageRequestManagerParserErrorException. It got to the point that I was contemplating ripping out ASP.NET AJ 阅读全文

posted @ 2011-08-11 00:01 Leo.W 阅读(310) 评论(0) 推荐(0) 编辑

摘要:页面底部加上: <script language="javascript" type="text/javascript"> Sys.Application.add_load( function() { var form = Sys.WebForms.PageRequestManager.getInstance()._form; form._initialAction = form.action = window.location.href; } ); </script> 阅读全文

posted @ 2011-08-10 23:42 Leo.W 阅读(335) 评论(0) 推荐(0) 编辑

摘要:解决方法: 在web.config的system.web节中添加 <httpHandlers> <remove path="*.asmx" verb="*"/> <add verb="*" path="*.asmx" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF 阅读全文

posted @ 2011-08-09 00:08 Leo.W 阅读(452) 评论(0) 推荐(0) 编辑

摘要:开发环境从xp升级到64位2008或Windows7,IIS变为7.0,遇到的各种问题 遇到同样问题,各种错 1 webform_AutoFocus("") 缺少对象 2 ASP.NET Ajax客户端框架未能加载 解决方案 应用程序池,高级设置,启用32位应用程序 设为 TRUE。 一切OK了。 郁闷同事也默认安装,我的不知怎么就设为FALSE了,害我抓狂了两天!! 阅读全文

posted @ 2011-08-09 00:04 Leo.W 阅读(349) 评论(0) 推荐(0) 编辑

摘要:WebResource.axd 如若遇到以下情况: 1)、所有涉及WebResource.axd引用的脚本不可使用;2)、TreeView控件中图片不能显示,出现“X”号,当然这个也属于与WebResource.axd文件相关联;3)、类似使用HyperLink、DropDownList等控件触发的“WebForm_PostBackOptions”未定义及下图中的WebForm_AutoFocus('xx')未找到对象等事件报错。 以 上均是由WebResource.axd提供,此文件并非真实存在,它是ASP.NET2.0提供的Web Resources管理模型,用于管理ima 阅读全文

posted @ 2011-08-08 23:59 Leo.W 阅读(2799) 评论(2) 推荐(0) 编辑

摘要:在用Microsoft Visual Studio 2005开发ASP.NET网站时,当你开发完后,发布网站时,会生成一个PrecompiledApp.config文件,该文件内容如下: <precompiledApp version="2" updatable="true"/> 这个文件是不能删除的,原因网友都有解释.现在想就PrecompiledApp.config文件还和Global.asax 文件中的事件有关联做一简单的分析. 在我们的多网站的设计方式中我们会根据不同的部署来设置多个webconfig文件,每个文件都有自己的独立的设置 阅读全文

posted @ 2011-04-02 15:36 Leo.W 阅读(1498) 评论(0) 推荐(0) 编辑

摘要:最近工作中要解决一个问题, 就是让ASP.NET访问网络盘, 读取里面的PDF文件并在浏览器中将其打开.刚刚开始以为很简单, 也就是直接映射网络硬盘, 然后直接调用Directory.GetFiles函数了事, 结果, 这个事情就搞了几天, 原因是函数GetFiles一直返回不了值, 因为ASP.NET不够权限访问网络盘. 这样就只能用impersonate了, 但impersonate再怎么用, 也是一直报错, 无法得到想要的结果一直baidu, google, 不果, 终于, 集合各家所长, 问题解决了先假设网页所在的服务器为websvr, 网络盘所在的服务器为filesvr1. 在fil 阅读全文

posted @ 2011-03-01 23:16 Leo.W 阅读(304) 评论(0) 推荐(0) 编辑

摘要:症状 如果使用 Response.End、Response.Redirect 或 Server.Transfer 方法,将出现 ThreadAbortException 异常。您可以使用 try-catch 语句捕获此异常。 原因 <!-- Inject Script Filtered --> Response.End 方法终止页的执行,并将此执行切换到应用程序的事件管线中的 Application_EndRequest 事件。不执行 Response.End 后面的代码行。此问题出现在 Response.Redirect 和 Server.Transfer 方法中,因为这两种方法 阅读全文

posted @ 2011-03-01 23:01 Leo.W 阅读(185) 评论(0) 推荐(0) 编辑

摘要:原文Sample Code Download ASP.NET view state is a great feature and an essential tool for web development of today. It maintains the state of a page as it travels back and forth. There is no more need to worry about restoring values of page controls between postbacks. In this article you will get an i. 阅读全文

posted @ 2011-02-28 13:55 Leo.W 阅读(233) 评论(0) 推荐(0) 编辑

摘要:How To: Use Impersonation and Delegation in ASP.NET 2.0 patterns & practices Developer Center J.D. Meier, Alex Mackman, Blaine Wastell, Prashant Bansode, Andy Wigley, Kishore GopalanMicrosoft CorporationAugust 2005Applies ToASP.NET version 2.0Microsoft® Windows Server™ 2003 operating system 阅读全文

posted @ 2010-04-07 00:18 Leo.W 阅读(898) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示