6
Answers

Rename .xml file to .xls

Ramco Ramco

Ramco Ramco

1y
564
1

Hi

  I have below code . I want if file has file extendsion .xml then first it should be saved as .xls with same name

string FolderPath = "~/Upload/ExcelUpload/";
                    string FilePath = Server.MapPath(FolderPath + RandomName + FileName);

                    FileUpload1.SaveAs(FilePath);

Thanks

Answers (6)