当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: 居然发现文件名编码后长度超过155就会不能正确显示和下载,最后只好找了这样一个折中的方法,截短了下面是那里的代码/// <summary>/// 下载附件。
 

 

 ·oracle 临时表空间使用注意    »显示摘要«
    摘要:临时表空间使用注意:1.临时表空间 是用于在进行排序操作(如大型查询,创建索引和联合查询期间存储临时数据)每个用户都有一个临时表空间2.对于大型操作频繁,(大型查询,大型分类查询,大型统计分析等),应指定单独的临时表空间,以方便管理3.分配用户单独临时表空间,一般是针对 大型产品数据库,oltp数据库,数据库仓库对于小型产品不需要单独制定临时表空间,使用默认临时表空间 ......
 ·php weekly summary | 08.nov.2004    »显示摘要«
    摘要:new: ./configure, suse and the amd64 hans zaunere of the new york php group wrote in to ask whether there was as yet a solution to the amd64/suse configuration issues he´d highlighted a couple ......


今天测试文件下载程序中发现的文件名过长的问题

居然发现文件名编码后长度超过155就会不能正确显示与下载,最后只好找了这样一个折中的方法,截短了

下面是那里的代码 【程序编程相关:用C++编写的基于双向链表的CPtrAr

【推荐阅读:CSDN Blog 界面个性化指南

/// <summary> 【扩展信息:blog的魅力,解决我一个oracle的

  /// 下载附件.

  /// </summary>

  /// <param name="filename">文件名</param>

  /// <param name="path">文件路径</param>

  public static void downloadfileattachment(string filename , string path)

  {

   if (system.io.file.exists(path))

   {

    try

    {

     filename  = filename.trim();

     for (int  i = 0 ; i < system.io.path.invalidpathchars.length ; i ++)

     {

      filename = filename.trim().replace(system.io.path.invalidpathchars[i].tostring() , string.empty);

     }

     filename  = filename.replace(system.io.path.pathseparator.tostring() , string.empty);


...   下一页
    摘要:datagrid1.columns.remove(0) ´删除0号字段datagrid1.columns.add(0).caption=”姓名” ´标签头datagrod1.columns(0).datafield=”name” ´对应的字段adodc1.refresh正文 ......
» 本期热门文章:

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