随笔分类 -  ASP.NET

摘要:推荐一款我最喜欢的Bootstrap主题: 我的应用地址:http://114.242.17.65:8022/ 官方地址:http://centaurus.adbee.technology/ 阅读全文
posted @ 2016-07-22 11:06 nogodsend 阅读(648) 评论(0) 推荐(0)
摘要:获取网站根目录的方法有几种如:Server.MapPath(Request.ServerVariables["PATH_INFO"]) Server.MapPath("/") Server.MapPath("")Server.MapPath(".") Server.MapPath("../") Server.MapPath("..") Page.Request.ApplicationPath以上的代码在http://localhost/English 阅读全文
posted @ 2011-10-11 13:03 nogodsend 阅读(1330) 评论(0) 推荐(0)
摘要:首先添加Com中的Excel插件。要在服务器安装Office。本例中是Office 2003实现例子:namespace Demo{ public partial class WebForm1 : System.Web.UI.Page { ExcelEdit.ExcelEdit excel = new ExcelEdit.ExcelEdit(); protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) ... 阅读全文
posted @ 2011-10-07 14:31 nogodsend 阅读(381) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using Microsoft.Office.Core;using Microsoft.Office.Interop.Excel;namespace ASS.Utility{ public class ExcelEdit { private string myFileName; public string MyFileName { get { return myFileName; } set { 阅读全文
posted @ 2011-10-07 14:22 nogodsend 阅读(275) 评论(0) 推荐(0)
摘要://用于DataGridView和excel进行互操作的C#类// 文件名: Excel2DataGridView// 文件功能描述: C#中DataGridView控件和Excel互访问类,// 当前版本:V1.0.0////----------------------------------------------------------------*//* public string mFilename; public Excel.Application app; public Excel.Workbooks wbs; public Excel.Workbook wb; public E 阅读全文
posted @ 2011-10-07 14:15 nogodsend 阅读(726) 评论(0) 推荐(0)