|
-
October 13th, 2008, 03:28 AM
#1
file uploading
hi all
I m trying to upload jpg file. using this code
i m using vs2005
Code:
if (IsValid && InputFile1.HasFile)
{
if (InputFile1.FileContent.Length <=5000000 && InputFile1.FileContent.Length > 0)
{
try
{
string filename = InputFile1.FileName;
string fileextension = Path.GetExtension(filename);
InputFile1.MoveTo(Path.Combine(apppath, "video\\org_video\\" + InputFile1.FileName), MoveToOptions.Overwrite);
}
catch (Exception ex)
{
Response.Write(ex.Message );
}
}
else
{
Label2 .Text =" the file is above 50 Mb";
}
}
when i run this code i m getting error "The process cannot access the file 'C:\Documents and Settings\admin\Local Settings\Temp\61e30ac62cc343ee8506f0c697834f95' because it is being used by another process.
"
please help me.
-
October 20th, 2008, 05:55 AM
#2
Re: file uploading
Give full code, including declarative syntax for file control declarion
-
October 23rd, 2008, 03:29 AM
#3
Re: file uploading
VB.Net 2005, Net Framework 2.0
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|