file uploading problem
-
hello i have created a fileupload at runtime...now i want to set its file from code...but its showing error that its read only...
FileUpload fl = new FileUpload();
// fl.Attributes.Add("value", fullpath); also tried this fl.FileName="D://pic//bullet.gif"; fl.SaveAs(pic\_path1);
please someone help how to set the file name in fileupload at runtime... Thanks
-
hello i have created a fileupload at runtime...now i want to set its file from code...but its showing error that its read only...
FileUpload fl = new FileUpload();
// fl.Attributes.Add("value", fullpath); also tried this fl.FileName="D://pic//bullet.gif"; fl.SaveAs(pic\_path1);
please someone help how to set the file name in fileupload at runtime... Thanks
Yeah... this is obviously for security reasons... You cannot initiate a file upload from within the website. The user must select a file.
.: I love it when a plan comes together :. http://www.zonderpunt.nl
-
hello i have created a fileupload at runtime...now i want to set its file from code...but its showing error that its read only...
FileUpload fl = new FileUpload();
// fl.Attributes.Add("value", fullpath); also tried this fl.FileName="D://pic//bullet.gif"; fl.SaveAs(pic\_path1);
please someone help how to set the file name in fileupload at runtime... Thanks