Hi to all..
How we can delete a record from a database after downloading through
Response.AppendHeader....

Questions Regarding Open/Save File Dialog box
1: if i only wants to view the file without saving it what should i use there.
2:if i want to download a file and then that downloaded file will be deleted from database..

How can i do these..
Plz help me in this Issue..
Thanks & Regards
Amit

>if i only wants to view the file without saving it what should i use there.
Inline content is displayed to the user. Use Content-Disposition; inline; header.

>if i want to download a file and then that downloaded file will be deleted from database..

System.IO.File.Delete method.

string file="~/download/file.zip";
.....
System.IO.File.Delete(MapPath(file));

Thanks Sir for Your Rply.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.