随笔分类 - ASP.NET
Issues,Articles and mess about asp.net
Session的保存机制
摘要:在ASP.NET的程序中要使用Session对象时,必须确保页面的@page指令中EnableSessionState属性是True或者Readonly,并且在web.config文件中正确的设置了SessionState属性。 ASP.NET中Session的状态保持是由web.config文件中的标记下的标记的mode属性来决定的。该属性有四种可能的值:Off、Inproc、StateServer和SQlServer。 设为Off会禁用Session。 Inproc是缺省的设置,这种模式和以前的ASP的会话状态的方法是类似的,会话的状态会被保存在ASP.NET进程中,它的优点是显而易...
阅读全文
frequently-used Algorithm
摘要:anybody can use these code. It's free. class SortAlgorithm { public void BubbleSort(int[] R) { int i, j, temp; bool exchange; for (i = 0; i < R.Length; i++) { exchange = false; for (j = 0; j < R.Length - 1; j+...
阅读全文
DefaultButton - Deal with users hitting ENTER on your forms
摘要:DefaultButton - Deal with users hitting ENTER on your forms Developers tend to assume that users will be always clicking on the buttons to submit forms. Is it a valid assumption? Unfortunately not always ... the simplest example can be quick search, a common component on many sites.What if user simp
阅读全文
.Net PostBack mechanism
摘要:well-known mechanism
阅读全文
System.Array.IndexOf
摘要:Array.IndexOf Methodhttp://msdn.microsoft.com/en-us/library/system.array.indexof.aspx.NET Framework 4.5Returns the index of the first occurrence of a value in a one-dimensionalArrayor in a portion of theArray.This member is overloaded. For complete information about this member, including syntax, us
阅读全文
浙公网安备 33010602011771号