上传控件:<asp:FileUpload ID="fuBigCover" runat="server" >
      string fileName = fuBigCover.PostedFile.FileName.Substring(fuBigCover.PostedFile.FileName.LastIndexOf('\\') + 1);//获取文件名

                //获取后缀
                string fixName = fileName.Substring(fileName.LastIndexOf("."));

               string fullname=path+"1"+fixName ;//改名
               
               fuBigCover.PostedFile.SaveAs(Server.MapPath(_magazinead.MagAdObject));//上传

相关文章:

  • 2022-12-23
  • 2021-06-09
  • 2021-12-12
  • 2022-02-07
  • 2021-09-09
  • 2021-06-10
  • 2021-07-02
  • 2021-10-29
猜你喜欢
  • 2021-05-02
  • 2021-08-03
  • 2022-12-23
  • 2021-12-26
  • 2021-10-02
  • 2022-02-07
相关资源
相似解决方案