
.NET Basic
文章平均质量分 75
riverlau
这个作者很懒,什么都没留下…
展开
-
System.DateTime? vs System.DateTime
http://stackoverflow.com/questions/1729553/system-datetime-vs-system-datetime? means that the type is nullable. For details, see e.g. MSDNNullable is a compiler-supported wrapper around valu转载 2011-11-16 10:51:18 · 376 阅读 · 0 评论 -
SmtpClient deliveryMethod
http://bartwullems.blogspot.sg/2010/02/smtpclient-deliverymethod.htmlSmtpClient deliveryMethodOne of the nice but little known possibilities of the System.Net.Mail.SmtpClient class is转载 2013-08-29 23:08:10 · 1206 阅读 · 0 评论 -
Ajax and ASP.Net Web Service
Web Service (ASMX, ASPX, WCF ) and Ajax Call1. Use JQuery Ajax call ASMX web method directlyThe reason need to add [System.Web.Script.Services.ScriptService] is Ajax does not support SOAP mes原创 2013-08-11 12:56:00 · 1037 阅读 · 0 评论 -
Thread Static
Sample Code:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Threading;namespace WebApplicati原创 2013-05-21 22:40:28 · 823 阅读 · 0 评论 -
How to use Log4net in your project
Download Assembly and Add into ProjectDownload From http://logging.apache.org/log4net/download_log4net.cgiConfigurationFile Appender原创 2012-08-29 22:40:17 · 583 阅读 · 0 评论 -
How To Stop Showing Web Page Errors in Internet Explorer
http://www.bloggertipandtrick.net/2010/04/how-to-stop-showing-page-errors-in-ie.htmlIf you are using internet explorer you can see that,Internet explorer show web page errors in its status Bar转载 2012-02-10 10:02:54 · 327 阅读 · 0 评论 -
Take Control Of Web Control ClientID Values in ASP.NET 4
http://www.4guysfromrolla.com/articles/031710-1.aspxWeb controls in ASP.NET also have ID values that uniquely identify each Web control. At first blush it may seem that the ID property values of转载 2011-12-11 22:49:37 · 470 阅读 · 0 评论 -
How to get controlToValidate ID base on Custom Validator
As we know, "ControlToValidate" is a property that can get controltoValidate Id from custom validator, However, if you use master page, then the "controltoValidate" return value may not be the real I原创 2011-12-08 12:46:40 · 754 阅读 · 0 评论 -
ASP.NET Page Life Cycle Overview (2011)
http://msdn.microsoft.com/en-us/library/ms178472.aspx#general_page_lifecycle_stagesASP.NET Page Life Cycle OverviewPage requestThe page request occurs before the page life cycle begins转载 2011-12-06 01:53:47 · 353 阅读 · 0 评论 -
Convert int? to int
int value = (nullableValue.HasValue) ? 0 : nullableValue.Value;原创 2011-12-05 00:17:50 · 431 阅读 · 0 评论 -
Custom Membership Providers
Code: http://www.codeproject.com/KB/aspnet/CustomMembershipProviders.aspxVideo: http://www.asp.net/general/videos/how-do-i-create-a-custom-membership-providerImplementing a Membership Provider htt原创 2011-11-11 18:04:52 · 469 阅读 · 0 评论 -
DataBinder.Eval(Container, "Text") vs DataBinder.Eval(Container.DataItem, "Text")
What is the different between "DataBinder.Eval(Container, "Text")" and "DataBinder.Eval(Container.DataItem, "Text")",For example: we have ComboBox : cmbTest As a ContainercmbTest.DataSource= List原创 2011-11-28 17:49:10 · 485 阅读 · 0 评论 -
Constraints on Type Parameters (what does where T : class mean)
In C# what does where T : class mean?Ie.public IList DoThis() where T : classwhere T : classThe type argument must be a reference type; this applies also to any class, in原创 2011-11-20 21:21:47 · 423 阅读 · 0 评论 -
IIS & Application Pool & App Domain & ...
http://stackoverflow.com/questions/13319996/httpmodules-and-global-asax-asp-net-page-life-cycleASP.NET applications in IIS are structured like my image below. I know it is probably scary looking转载 2013-09-30 16:45:51 · 1630 阅读 · 0 评论