设置GridView列名中文显示 及DataTable根据主键获取行记录
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = FormatDT(); //获取主键指定行 DataRow dr1 = dt.Rows.Find( …… 阅读全文
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable dt = FormatDT(); //获取主键指定行 DataRow dr1 = dt.Rows.Find( …… 阅读全文
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { DataTable tt = GetCrossTable(CreateDT()); GridView1.DataSource = tt; G …… 阅读全文
protected void Page_Load(object sender, EventArgs e) { creatDataTable(); } protected void Button1_Click(object sender, EventArgs e) { DataTable DataTabl …… 阅读全文
大家在实际工作学习C#的时候,可能会问:为什么我们要为一些已经存在的功能(比如Windows中的一些功能,C++中已经编写好的一些方法)要重新编写代码,C#有没有方法可以直接都用这些原本已经存在的功能呢?答案是肯定的,大家可以通过C#中的DllImport直接调用这些功能。DllImport所在的名字空间 using System.Runtime.InteropServices;MSDN中 …… 阅读全文
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Data;namespace MSCL{ /// /// 生成条码Code39 /// public class Code39 …… 阅读全文
string url = string.Format( "http://bms.hichina.com/sms_gateway/sms_api?" + "user_id={0}&password={1}&mobile_phone={2}" + "&msg={3}&send_date={4}&sub …… 阅读全文