当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: /// <summary>/// 将DataSet里
 

 

    摘要:the following walkthrough demonstrates the use of a custom action and the customactiondata property to create a database and database table during installation.note this walkthrough requires sql serve......
    摘要:解决“不允许类型 system.delegateserializationholder 和从中派生的类型(例如 system.delegateserializationholder)在此安全级别上被反序列化”错误的办法。在.net framework 1.1中安全级别默认是low的,所以不能被反序列化。以下代码是是一个聊天程序,在修改了配置文件后就可以访问了。远程处理程序:......


怎么由DataSet将数据导入Excel?

  /// <summary>  /// 将dataset里所有数据导入excel.  /// 需要添加com: microsoft excel object library.  /// using excel;  /// </summary>  /// <param name="filepath"></param>  /// <param name="ds"></param>  public static void exporttoexcel(string filepath, dataset ds)  {   object omissing = system.reflection.missing.value;   excel.applicationclass xlapp = new excel.applicationclass();   try   {    // 打开excel文件.以下为office 2000.    excel.workbook xlworkbook = xlapp.workbooks.open(filepath, omissing, omissing, omissing, omissing, omissing,      omissing, omissing, omissing, omissing, omissing, omissing,     omissing);    excel.worksheet xlworksheet;    // 循环所有datatable    for( int i=0; i<ds.tables.count; i++ )    {     // 添加入一个新的sheet页.
...   下一页

 ·在asp.net 中实现单点登录     »显示摘要«
    摘要:在asp.net 中实现单点登录由于某些原因,在我们的应用中会遇到一个用户只能在一个地方登录的情况,也就是我们通常所说的单点登录。在asp.net中实现单点登录其实很简单,下面就把主要的方法和全部代码进行分析。实现思路利用cache的功能,我们把用户的登录信息保存在cache中,并设置过期时间为session失效的时间,因此,一旦session失效,我们的cache也过期;而cache对所有的用户......
» 本期热门文章:

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