2015年3月26日
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using System.IO;using NPOI.HSSF.UserModel;using NP... 阅读全文
posted @ 2015-03-26 16:25 王玉涛 阅读(3520) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { Console.WriteLine("在宽度为的空间里靠左对齐:{0,-10}", 99); Console.WriteLine... 阅读全文
posted @ 2015-03-26 14:33 王玉涛 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 小问题难倒很多人。今天发现了这个问题,搜了很长时间才看到记录下。实例:dt.Columns.Add(firstRow.GetCell(i).StringCellValue ?? string.Format("F{0}", i + 1), typeof(string));以下是转载的内容。C#中两个问... 阅读全文
posted @ 2015-03-26 14:30 王玉涛 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 使用onclick跳转到其他页面/跳转到指定url☆如果是本页显示可以直接用location,方法如下: ①onclick="javascript:window.location.href='URL'" ②onclick="location='URL'" ③onclick="window.lo... 阅读全文
posted @ 2015-03-26 08:52 王玉涛 阅读(4863) 评论(0) 推荐(1) 编辑