Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: send XML request and get XML response Pin
N a v a n e e t h24-May-07 18:10
N a v a n e e t h24-May-07 18:10 
GeneralRe: send XML request and get XML response Pin
praveenkumar_mca24-May-07 18:34
praveenkumar_mca24-May-07 18:34 
GeneralRe: send XML request and get XML response Pin
praveenkumar_mca24-May-07 18:37
praveenkumar_mca24-May-07 18:37 
GeneralRe: send XML request and get XML response Pin
praveenkumar_mca24-May-07 18:44
praveenkumar_mca24-May-07 18:44 
GeneralRe: send XML request and get XML response Pin
praveenkumar_mca23-May-07 1:30
praveenkumar_mca23-May-07 1:30 
Questionhow to convert asp to asp.net Pin
saravanan0522-May-07 23:24
saravanan0522-May-07 23:24 
AnswerRe: how to convert asp to asp.net Pin
Christian Graus22-May-07 23:36
protectorChristian Graus22-May-07 23:36 
QuestionCreating then emailing files in asp.net2 project Pin
Glen Harvy22-May-07 21:36
Glen Harvy22-May-07 21:36 
Hi,

I am having problems with sending files created within an asp.net2 page - specifically I cannot delete a file that was created immediately prior to the current session because it's locked by w3wp.exe.

Some psuedo code might help:

[grab data from POST]
[create a file using the following:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = true;
proc.StartInfo.FileName = @"C:\program.exe";
proc.StartInfo.Arguments = commandLine.ToString();
proc.Start();
proc.Exited += new EventHandler(ProcessDone);
proc.WaitForExit();
if (File.Exists(@"C:\Temp\mynewfile.lic"))
{
sendEmail();

}]
[send the file as an attachment using SmtpClient]

The process works fine on the first run through BUT subsequent attemps to overwrite the previously created file fail and of course the first generated file gets sent again.

The generated file can't be deleted because it's flagged as in use by w3wp.exe .

I've done some research into this and I believe it has something to do with session state but my atttempts to get it to work have all failed.

Can someone please give me some guidence and perhaps an example code.

thanks in advance,

Glen Harvy

QuestionNumeric mode paging in datalist Pin
DhawalJoe22-May-07 21:30
DhawalJoe22-May-07 21:30 
QuestionDoubt abt Session time out expired Pin
micydon22-May-07 21:29
micydon22-May-07 21:29 
AnswerRe: Doubt abt Session time out expired Pin
Guffa22-May-07 22:22
Guffa22-May-07 22:22 
QuestionConnecting ASP.NET with SQL SERVER Pin
Prakash_Mishra22-May-07 21:24
Prakash_Mishra22-May-07 21:24 
AnswerRe: Connecting ASP.NET with SQL SERVER Pin
N a v a n e e t h22-May-07 21:36
N a v a n e e t h22-May-07 21:36 
AnswerRe: Connecting ASP.NET with SQL SERVER Pin
meeram39523-May-07 1:43
meeram39523-May-07 1:43 
Questionhow can i get asp.net calendar control value in javascript Pin
dtamils22-May-07 21:13
dtamils22-May-07 21:13 
AnswerRe: how can i get asp.net calendar control value in javascript Pin
N a v a n e e t h22-May-07 21:33
N a v a n e e t h22-May-07 21:33 
QuestionException in Rendering GridView Pin
248912822-May-07 20:48
248912822-May-07 20:48 
AnswerRe: Exception in Rendering GridView Pin
Harini N K22-May-07 23:08
Harini N K22-May-07 23:08 
Questionuser control + asp.net2.0 + c# Pin
ritu432122-May-07 20:33
ritu432122-May-07 20:33 
AnswerRe: user control + asp.net2.0 + c# Pin
Sandeep Akhare22-May-07 20:43
Sandeep Akhare22-May-07 20:43 
GeneralRe: user control + asp.net2.0 + c# Pin
praveenkumar_mca23-May-07 21:14
praveenkumar_mca23-May-07 21:14 
GeneralRe: user control + asp.net2.0 + c# Pin
Sandeep Akhare23-May-07 21:23
Sandeep Akhare23-May-07 21:23 
AnswerRe: user control + asp.net2.0 + c# Pin
Sherin Iranimose22-May-07 20:57
Sherin Iranimose22-May-07 20:57 
GeneralRe: user control + asp.net2.0 + c# Pin
praveenkumar_mca23-May-07 21:20
praveenkumar_mca23-May-07 21:20 
AnswerRe: user control + asp.net2.0 + c# Pin
praveenkumar_mca23-May-07 21:27
praveenkumar_mca23-May-07 21:27 

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.