Author: hardtoget410 | Posted on: 4/15/2010 8:39:32 AM | Views : 266

I tried to upload file to my hosting company server but when i try to upload any file by upload file control and press a button which it's click event uploads the file I got an error says Could not find file ......


this is my code
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net; using System.IO; public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btnUpload_Click(object sender, EventArgs e) { try { FtpWebRequest ftpwR; FtpWebResponse ftwp; ftpwR = (FtpWebRequest)FtpWebRequest.Create(new Uri("ftp://ftp.myhostingcoserver.ae/" + uploadfile.FileName)); ftpwR.UseBinary = true; ftpwR.Method = Web ...

Go to the complete details ...