摘要:
引用自:http://www.cnblogs.com/jhxk/articles/1619867.htmlMSDN说:可空类型可以表示基础类型的所有值,另外还可以表示 null 值。可空类型可通过下面两种方式中的一种声明:1、System.Nullable<T> variable2、T? variableT 是可空类型的基础类型。T 可以是包括 struct 在内的任何值类型;但不能是引用类型。有关可能使用可空类型的示例,请考虑普通的布尔变量如何能够具有两个值:true 和 false。不存在表示“未定义”的值。在很多编程应用中(最突出的是数据库交互),变量可存在于未定义的状态。例 阅读全文
摘要:
<%@ Page Language="C#" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Ma 阅读全文
摘要:
if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Cells[6].Text = Server.HtmlDecode(e.Row.Cells[6].Text); e.Row.Cells[7].Text = Server.HtmlDecode(e.Row.Cells[7].Text); e.Row.Cells[8].Text = Server.HtmlDecode(e.Row.Cells[8].Text); e.Row.Cells[9].Text = Server.HtmlDecode(e.Row.Cells[9].Text);// 阅读全文
摘要:
var linqbitem = from wip in dt_onwip.AsEnumerable() join bitem in dt_cos_bitem.AsEnumerable() on wip.Field<string>("item_no").Trim() equals bitem.Field<string>("item_no").Trim() into s from t in s.DefaultIfEmpty() select new { item_no = wip.Field<string>("i 阅读全文
摘要:
/// <summary> /// 匯出到Excel /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnExport_Click(object sender, EventArgs e) { ExportGridViewToExcel(Response, GridView_trdord, "Tracing"); } //到出e 阅读全文
摘要:
//动态创建DataTable用来绑定到GridView。DataTable dt_per = new DataTable(); DataColumn column_per; column_per = new DataColumn(); column_per.DataType = System.Type.GetType("System.String"); column_per.ColumnName = "ord_nbr"; column_per.ReadOnly = true; column_per.Unique = true; dt_per.Colum 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=big5 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=g 阅读全文
摘要:
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Xml.Linq;using Sy 阅读全文
摘要:
string yyyymm="201111";string firstdate = yyyymm.Substring(0, 4) + "/" + yyyymm.Substring(4, 2) + "/" + "01"; //2011/11/01string lastdate = yyyymm.Substring(0, 4) + "/" + yyyymm.Substring(4, 2) + "/" + DateTime.DaysInMonth(int.Parse(yyyymm. 阅读全文