C#
文章平均质量分 68
tracyly1029
这个作者很懒,什么都没留下…
展开
-
Guid-Globally Unique Identifier
借鉴了网上的一些看法: 1. 一个GUID为一个128位的整数(16字节),在使用唯一标识符的情况下,你可以在所有计算机和网络之间使用这一整数。 2. GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中每个 x 是 0-9 或 a-f 范围内的一个十六进制的数字。例如:337c7转载 2011-12-15 01:41:39 · 591 阅读 · 0 评论 -
Data Layer Format
Datatable Readonly public static DataTable getList(Guid rootAccountId) { System.Data.IDataReader dr = null; DataTable dt = new DataTable(); // Cr原创 2012-08-04 03:36:24 · 528 阅读 · 0 评论 -
get row data value& datatable filter & new datatable from datatable
1. RowDataBound protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { DefaultValue = ((GridView)sender).DataKeys[e.Ro原创 2012-08-03 02:53:03 · 621 阅读 · 0 评论 -
How to pass a value from User Control to the Page
Introduction In this article, I am going to show you how to get a particular value entered by the user from user control to the calling page. In order to do that I am going to create a user control (转载 2012-07-05 00:21:42 · 609 阅读 · 0 评论 -
ViewState too large and setting the max number of controls in the one page by web config
From: http://weblogs.asp.net/lduveau/archive/2007/04/17/viewstate-chunking-in-asp-net-2-0-maxpagestatefieldlength.aspx ViewState Chunking in ASP.NET 2.0 (maxPageStateFieldLength) I am current转载 2012-06-07 21:37:30 · 900 阅读 · 0 评论 -
Properties format
INT privateint RowIndex { get { if (ViewState["RowIndex"] == null) { return -1; } else { returnint.Parse(ViewState["RowIndex"].ToString()); } } set { ViewState["RowIn原创 2012-06-05 02:29:45 · 404 阅读 · 0 评论 -
C#发送邮件三种方法,Localhost,SMTP,SSL-SMTP
(转)C#发送邮件三种方法,Localhost,SMTP,SSL-SMTP 通过.Net FrameWork 2.0下提供的“System.Net.Mail”可以轻松的实现,本文列举了3种途径来发送: 1.通过Localhost; 2.通过普通SMTP; 3.通过SSL的SMTP; 下面一个一个来说: 1.通过LocalHost C#代码 publi转载 2012-03-22 08:53:24 · 779 阅读 · 0 评论 -
send email class
using System; using System.Net; using System.Net.Mail; using System.Net.Mime; namespace Fish { /// /// 发送邮件的类 /// public class SendMail {转载 2012-03-22 08:52:28 · 335 阅读 · 0 评论 -
querystring avoid the browser not accepting some characters
Server.UrlEncode(lblPackageName.Text).Replace("'", "%27").Replace("#", "%23")原创 2012-03-29 00:04:05 · 270 阅读 · 0 评论 -
read web.config value-
System.Text.StringBuilder buffer = new System.Text.StringBuilder(); System.Collections.Specialized.NameValueCollection appSettings = System.Web.Configuration.WebConfigurat转载 2012-09-15 04:06:28 · 594 阅读 · 0 评论