c#(asp.net) 多线程示例,用于同时处理多个任务

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Threading;using System.Web.UI.WebControls;public partial class muti_thread : S …… 阅读全文

固定GridView标题栏,冻结列功能实现

protected void Page_Load(object sender, EventArgs e) { DataTable t = new DataTable(); t.Columns.Add("序号", typeof(int)); t.Columns.Add("材料", typeof(string)); t.Colum …… 阅读全文

获取报告 Stream转string,利用字符串分割转换成DataTable

protected void Button1_Click(object sender, EventArgs e) { MemoryStream stream = new MemoryStream(); StreamReader reader = new StreamReader(stream); GetReportRequest reque …… 阅读全文

c# 多线程传递参数以及任务

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace ConsoleSample{ class Program { static void Main(string[] args) …… 阅读全文

c#使用GDI+简单绘图(二)

// Create the in-memory bitmap where you will draw the image. // This bitmap is 300 pixels wide and 50 pixels high. Bitmap image = new Bitmap(300, 50); // get the graphics con …… 阅读全文

C#综合揭秘——细说多线程

//以下这个例子,就是通过Thread显示当前线程信息static void Main(string[] args){ Thread thread = Thread.CurrentThread; thread.Name = "Main Thread"; string threadMessage = string.Format("Thread ID:{0}\n Current App …… 阅读全文