Click here to Skip to main content
15,920,632 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: problem in javascript in mozila browser Pin
Vipin.d23-Jun-07 4:32
Vipin.d23-Jun-07 4:32 
AnswerRe: problem in javascript in mozila browser Pin
Fred_Smith23-Jun-07 4:38
Fred_Smith23-Jun-07 4:38 
Questionasp.net 2.0 project (Failed to update database ) Pin
sync_austin23-Jun-07 2:06
sync_austin23-Jun-07 2:06 
AnswerRe: asp.net 2.0 project (Failed to update database ) Pin
Peter Mead23-Jun-07 2:46
Peter Mead23-Jun-07 2:46 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
sync_austin23-Jun-07 3:05
sync_austin23-Jun-07 3:05 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
Peter Mead23-Jun-07 3:36
Peter Mead23-Jun-07 3:36 
GeneralRe: asp.net 2.0 project (Failed to update database ) Pin
sync_austin24-Jun-07 0:21
sync_austin24-Jun-07 0:21 
QuestionError in Deleting File... FileInfo Pin
dhulipudi23-Jun-07 1:55
dhulipudi23-Jun-07 1:55 
Hello,

I am using the following code to upload and delete the file in a folder.

DirectoryInfo dir1 = new DirectoryInfo(Server.MapPath("~\\Upload\\"));
...
foreach (FileInfo f in dir1.GetFiles("*.jpg"))
{
byte[] buffer = new byte[f.OpenRead().Length];
f.OpenRead().Read(buffer, 0, (int)f.OpenRead().Length);
PhtMgr.AddPhoto(buffer);
f.Delete(); // Error occurs HERE.
}
This code is working fine for the firs time(first file). Its giving the following Error
"The process cannot access the file 'xyz.jpg' because it is being used by another process." when trying to upload another photo to database and delete it.

Plz let me know where i have side tracked.

Regards,
dhulipudi



AnswerRe: Error in Deleting File... FileInfo Pin
Fred_Smith23-Jun-07 4:42
Fred_Smith23-Jun-07 4:42 
QuestionHow to avoid the Excel prompt window when exporting data to Excel 2007 [modified] Pin
Mohamed Arif23-Jun-07 1:50
Mohamed Arif23-Jun-07 1:50 
AnswerRe: How to avoid the Excel prompt window when exporting data to Excel 2007 Pin
sidbaruah25-Jun-07 0:57
sidbaruah25-Jun-07 0:57 
Questionfetching records from excel on the basis of date given by user. Pin
MissionSuccess23-Jun-07 1:35
MissionSuccess23-Jun-07 1:35 
Questionsimple,short question Pin
Amr M. K.23-Jun-07 0:42
Amr M. K.23-Jun-07 0:42 
AnswerRe: simple,short question Pin
kubben23-Jun-07 1:40
kubben23-Jun-07 1:40 
AnswerRe: simple,short question Pin
badgrs23-Jun-07 12:25
badgrs23-Jun-07 12:25 
AnswerRe: simple,short question Pin
Christian Graus23-Jun-07 13:37
protectorChristian Graus23-Jun-07 13:37 
Questionmulti usercontrol! Pin
synbad23-Jun-07 0:29
synbad23-Jun-07 0:29 
AnswerRe: multi usercontrol! Pin
honeyss29-Jun-07 3:08
honeyss29-Jun-07 3:08 
QuestionDynamic controles Pin
hadad22-Jun-07 23:06
hadad22-Jun-07 23:06 
AnswerRe: Dynamic controles Pin
Abolfazl Sheikhloo22-Jun-07 23:38
Abolfazl Sheikhloo22-Jun-07 23:38 
GeneralRe: Dynamic controles Pin
hadad22-Jun-07 23:48
hadad22-Jun-07 23:48 
GeneralRe: Dynamic controles Pin
WillemM23-Jun-07 10:33
WillemM23-Jun-07 10:33 
AnswerRe: Dynamic controles Pin
Vipin.d23-Jun-07 4:20
Vipin.d23-Jun-07 4:20 
QuestionAn extender can't be in a different UpdatePanel than the control it extends Pin
morteza5722-Jun-07 22:13
morteza5722-Jun-07 22:13 
AnswerRe: An extender can't be in a different UpdatePanel than the control it extends Pin
badgrs23-Jun-07 12:23
badgrs23-Jun-07 12:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.