![]() ![]() Creating one child node with tag name book XmlNode RootNode = XmlDocObj.SelectSingleNode("bookstore") Select root node which is already defined XmlDocument XmlDocObj = new XmlDocument() RequestStream.Write(fileBytes, 0, fileBytes.Length) įtpWebResponse response = (FtpWebResponse)request.GetResponse() Using (Stream requestStream = request.GetRequestStream()) Request.Credentials = new NetworkCredential("tnd/WDevPMISftp1", = fileBytes.Length Using (StreamReader fileStream = new StreamReader())įileBytes = (fileStream.ReadToEnd()) įtpWebRequest request = (FtpWebRequest)WebRequest.Create(ftp + ftpFolder + fileName) String fileName = Path.GetFileName(FileUpload1.FileName) ![]() Read the FileName and convert it to Byte array. Leave blank if you want to upload to root folder. Protected void Unnamed_Click(object sender, EventArgs e) Protected void Page_Load(object sender, EventArgs e) Public partial class FTPtestingpage : .Page Thanks i hope to understand my query and please provide the solution. path and text box value will also save SQL database. I have saved some textbox value and some other fields (file upload control) save as XML file and upload file save in a folder in FTP and this XML file save to FTP server (e.g Ftp//10.12.35.26/).įTP Server Contain One folder(Uploaddocument) which saves the document and Other text box value save is in an XML file(savedata.xml) save all text box value with File upload Path also view document form Local machine to FTP server. I want to save some textbox value and data with save within XML file and this XML file Save to FTP server and also save. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |