asp.net一些很酷很实用的.Net技巧
一..Net Framework 1.如何获得系统文件夹 使用System.Envioment类的GetFolderPath方法;例如: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) 2.如何获得正在执行的exe文件的
一..Net Framework 1.如何获得系统文件夹 使用System.Envioment类的GetFolderPath方法;例如: Environment.GetFolderPath( Environment.SpecialFolder.Personal ) 2.如何获得正在执行的exe文件的
#region DataGridView数据显示到Excel/// /// 打开Excel并将DataGridView控件中数据导出到Excel/// /// DataGridView对象 /// 是否显示Excel界面 /// /// add com "Microsoft Excel 11.0 O
如果你已经有较多的面向对象开发经验,跳过以下这两步: 第一步 掌握一门.NET面向对象语言,C#或VB.NET 我强烈反对在没系统学过一门面向对象(OO)语言的前提下去学ASP.NET。 ASP.NET是一个全面向对象的技术,不懂OO,那绝对学不下去! 第二步 对.NET Framework类库
string strField = "id|className|classAdd"; string strKeyWords = this.tbxKeyWords.Text.Trim(); string strSql = dbexe.searchText("select * from class",
asp.net清空Cookie的两种方法 第一种 Cookie.Expires=[DateTime]; Response.Cookies("UserName").Expires = 0; 第二种 Response.Cookies["admin"].Expires = DateTime.Now.Add
1、 foreach (Control c in this.rptTables.Controls) {CheckBox cbx = (CheckBox)c.FindControl("cbxId");TextBox tbx = (TextBox)c.FindControl("tbxTableName"
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.IO;namespace Windows
1、 foreach (Control c in this.rptTables.Controls) {CheckBox cbx = (CheckBox)c.FindControl("cbxId");TextBox tbx = (TextBox)c.FindControl("tbxTableName"
实现代码如下:using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Threading; namespace copefile {class Program{s
今天我就把我用ACCESS参数化查询的一些方法和经验和大家分享 希望对大家有所启发,有写的不对的地方希望高手们多多指教 ASP.NET 用OleDbCommand的new OleDbParameter创建参数货查询 ASP用Command的CreateParameter 方法创建参数化查询 (SQL