蛙蛙推荐:最近开发一个小型的OA,把常用代码和大家分享一下先[22]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 onlytiancai 的 blog

14.我自己写的上传函数

public static string upfile(system.web.ui.page p,system.web.ui.htmlcontrols.htmlinputfile file1){

        

              //上传文件

              if (file1.postedfile != null)

              {

                   try

                   {

                       string spath=p.server.mappath(p.request.applicationpath)+configurationsettings.appsettings["uppath"];

                       string fpath=oa.cls.globalstate.makerand(10)+system.io.path.getfilename(file1.postedfile.filename);

                        spath+=fpath;

本文关键:蛙蛙推荐:最近开发一个小型的OA,把常用代码和大家分享一下先
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top