当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 前些日子,有很多朋友说需要C#导出到Excel的代码,现共享给大
 

 

 ·c# aop微型框架实现(二)     »显示摘要«
    摘要:3. aopproxyattribute aop代理特性/****************************** aopproxyattribute ************************************using system;using system.runtime.remoting ;using system.runtime.remoting.proxies ;nam......
 ·系统设计中的业务验证设计2     »显示摘要«
    摘要:callbyname:函数在运行时用来获取属性,设置属性或调用方法。例子:imports microsoft.visualbasic.calltype该方法所在的运行库sub testcallbyname1() 设置对象的属性值 callbyname(textbox1, "text", calltype.set, "new text") 获取对象的属性值 m......


C#操作Excel(导入导出)

/// <summary>  /// 读取excel文档  /// </summary>  /// <param name="path">文件名称</param>  /// <returns>返回一个数据集</returns>  public dataset exceltods(string path)  {   string strconn = "provider=microsoft.jet.oledb.4.0;" +"data source="+ path +";"+"extended properties=excel 8.0;";   oledbconnection conn = new oledbconnection(strconn);   conn.open();     string strexcel = "";      oledbdataadapter mycommand = null;   dataset ds = null;   strexcel="select * from [sheet1$]";   mycommand = new oledbdataadapter(strexcel, strconn);   ds = new dataset();   mycommand.fill(ds,"table1");      return ds;  } 【推荐阅读:[2005-06-13]IssueVis

前些日子,有很多朋友说需要c#导出到excel的代码,现共享给大家


...   下一页
 ·关于树型dropdownlist的绑定     »显示摘要«
    摘要: 开发产品的时候,需要用到树性的dropdownlist,于是在网上找方法,找了很多,都不是很有效,于是自己写了个! 首先设计好数据库,假设数据库有三个字段id,parentid,name。parentid是树性结构必须的,就是节点的父节点id,假设跟节点id都是0。下面就可以绑定了! 思路应该很简单,就是先绑定根节点,再循环绑定子节点!父节点和子节点之间为了显示出层次结构,用空格格开,不过不是s......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE