Use this to upload a file; |
| Sujit Patil replied to shreya verma at 09-May-08 04:53 |
|
Use this;
if (FileUpload1.FileName != "")
{
string strSource = FileUpload1.PostedFile.FileName;
string strDestination = AppDomain.CurrentDomain.BaseDirectory + "Uploads\\" + FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(strDestination);
}
And still error comes then post the exact error so that we can solve it.
Best Luck!!!!!!!!!!!!!
Sujit. |
|