Author: singh2aug | Posted on: 5/15/2009 3:04:51 AM | Views : 613

Q:- It works very good on local system, But not from Remote Server. Is there any one who can help me to find out solution...Help please.... public partial class testUpload : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // Cache.Remove("myv"); } protected void BtnUpload_Click(object sender, EventArgs e) { string fto=FileUpload1.PostedFile.FileName; int myindex = fto.IndexOf(":"); string myf = fto.Replace(":","$"); //string fname = System.IO.Path.GetFullPath(fto); string fname = "\\\\192.168.1.8\\" + myf; // Response.Write(FileUpload1.PostedFile.FileName); Response.Write("\\\\192.168.1.8\\" + myf); Response.Write(System.AppDomain.CurrentDomain.BaseDirectory.ToString() ); Upload(fname); // myupload(); } private void Upload(string filename) { string ftpS ...

Go to the complete details ...