轉自:http://www.cnblogs.com/accpfriend/archive/2008/11/07/1328865.html1,JS,CSS引用路徑大家在項目常會用到引用外部的JS指令碼或CSS,等 相信大家都會覺得這沒什麼可說的,真接將CSS拖進頁面即可???????Code highlighting produced by Actipro CodeHighlighter
1.ASP.NET設定檔採用繼承關係,其關係是:是machine.config-->web.config-->檔案夾web.config。2.關於<location/>節點節點,通常在配置許可權時候,我們使用web.config對網站目錄下檔案夾或檔案進行一個許可權的限定訪問,如:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--
最近做一個項時候登入時用Cookies儲存了使用者Id.可是在做退出的時候出現了一點小問題。CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Response.Cookies.Clear() 可是退出
6 Formats and Model Binding6 格式化與模型繫結本文引自:http://www.asp.net/web-api/overview/formats-and-model-bindingBy Mike Wasson|July 20, 2012作者:Mike Wasson |日期:2012-7-12In this chapter, you'll learn:本章將學習:How ASP.NET Web API binds HTTP messages to domain
最近,打算在UpdatePanel中使用FCKeditor時,發現了一個小問題:當點擊Panel內的按鈕進行AsynPostBack後,FCKeditor控制項中先前所錄入的內容便丟失了。 在Google上查了下,發現瞭解決方法: 1.首先在頁面中添加如下JS指令碼: <script language="javascript" type="text/javascript"> // Some Class function
非常簡單,一句代碼而已,備忘。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->Response.Write(FormsAuthentication.HashPasswordForStoringInConfigFile("要加密的字串", "MD5"));為了讓博文稍長一些,價值稍高一些,附我常用的,加密帶解密的代碼:代碼 Code
如果我們正在使用Session,那麼構建高效能可擴充的ASP.NET網站,就必須解決分布式Session的架構,因為單伺服器的SESSION處理能力會很快出現效能瓶頸,這類問題也被稱之為Session同步。微軟有自己的分布式Session的解決方案,那就是SessionStateServer,我們可以參考:ASP.NET Session State Partitioning