如果你在WebFarm上使用需要加密的ViewState,則必須要讓WebFarm上所有機器的MachineKey一致,否則ViewState將會失效,這篇檔案就是講述這個問題的,希望使用WebFarm技術的哥們可以看看。The <machineKey> Element configures keys to use for encryption and decryption of forms authentication cookie data and viewstate data,
I use this in Global.asax for my CSLA based app: Private Sub Global_AcquireRequestState(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.AcquireRequestState If Not Session("CSLA-Principal") Is Nothing Then
Unit Test Your .NET Data Access Layer on MSDNSteven A. SmithASPAlliance.comOctober 2003Applies to: Microsoft ASP.NETSummary: Learn how to use NUnit and some related tools to successfully support testing a Data Access Layer for ASP.NET
Build Tools for .NET ApplicationsBy Mike GunderloyWhen you're writing your first few .NET applications, you'll probably find the Build and Rebuild menu items in Visual Studio .NET to be sufficient. But most developers quickly outgrow this option
Easy Asynchronous "NET SEND" MessagingOften when you have a number of people on a network who are logical "subscribers" to certain events, changes or other business - related happenings, you want to have a simple way to "Fire and forget"
上一篇說了如何把 把獲得的資料流轉換成一副圖片(Bitmap)那麼反過來呢,如何?呢?這個原理比較簡單,同樣是用記憶體序列化實現,直接把映像序列化到記憶體,在把記憶體中的流還原序列化出來為位元組數組就行了。結合上一篇文章我們就可以心所欲的在資料流與圖片轉換了。代碼如下:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncomser/html/entsvcperf.asp?frame=trueSummary: See the performance of native COM+ and .NET Enterprise Services components when applied to different activation and calling patterns.
上次和JGTM'2004 [MVP]討論異常,他說“儘可能用邏輯流程代替異常捕獲“。我也同意但考慮下面的情境:transfer(Account from ,Account to, int amount);上面的這個函數是兩個帳號轉帳用的,假如發現from帳號沒有錢了,怎麼處理呢?發現from和to帳號是同一個帳號,該怎麼處理呢?類似情況難道都用傳回值來告訴調用者嗎?顯然不合適,這樣又回到結構化編程的老路了,調用者不得不做n多的判斷…… Windows大牛(Jeffery
Jeff Key January 16, 2002 Visual Studio.NET makes it very easy to use resource files, so why not take advantage of them? You can store just about anything in them, including strings, images and persisted objects, but the most useful for web apps is
Articles for ADO.NET from(http://ms.blogger.cn/dongxun/)The first meeting of INETA Beijing is ADO.NET Best Practices. Here is a list of all the both FREE and EXCELLENT material I found in MSDN about ADO.NET. I give each one a brief introduction so
http://www.15seconds.com/issue/040112.htmTable of Contents Table of Contents Part I - Toward a new Data AccessIntroductionAdoptionTraditional, API-Based Data AccessObject-Relational PersistenceMapping and MetadataData Mapping DogmaPersistence