How to Create Dynamic File Name in XML file
I have received XML File name as XMLfilename.xml but i should received XML file name as ProjectId 11234 and Document Id 1234 and Filename MPR2020 name is 11234_1234_MPR2020.xml
XMLfilename.xml (Received Wrong )
11234_1234_MPR2020.xml(Requirement )
string xml = App_Code.Common.AddDocInputXml(insertid, ObjDoc);
string XMLfilename =ProjectId + "_" + ddlDocType.SelectedItem.Text + "-"+"V01" + "-" + filename2;
fileBytes = Encoding.Unicode.GetBytes(xml);
UploadToFTP(ftp, userName, password, ftpFolder, "XMLfilename.xml", fileBytes);