Pop up my Cbox Sinan BARAN | Asp.NET Application Download File

Asp.NET Application Download File

by sinan 20. October 2009 15:19

 

 

 Bir kısmı....

string FileName = Request.QueryString["FN"];

string F = FilePathProcess.DosyalarPath + FileName;

FileInfo info = new FileInfo(F);

if (File.Exists(F))

{

Response.Clear();

Response.AddHeader(
"Content-Disposition", "attachment; filename=" + F);

Response.AddHeader("Content-Length", info.Length.ToString());Response.ContentType =

"application/octet-stream";

Response.WriteFile(F);

Response.End();

}

else

{

Response.Write(
"Boyle Br Dosya Yoktur");

}

 

RapidShare_Application.rar (65,75 kb)

Comments

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by //www.dotnetblogengine.net">BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

Tag cloud

Most comments

mucahid1986 mucahid1986
Software For Real Estate Software For Real Estate
ae U.A.E.
ALİ ALİ
tr Turkey
serhat serhat
cz Czech Republic
İbrahim Çalışkan İbrahim Çalışkan
tr Turkey
Savaş Yaşar Savaş Yaşar
tr Turkey
car dealers Abu Dhabi car dealers Abu Dhabi
us United States
Rebeccamy Rebeccamy
ca Canada
Erdin Kazan Erdin Kazan
tr Turkey
mithat mithat

Ben

Heyecan Dolu,Arastirmaci,aninda ters hareket edip havalara ucabilan birisiyim:)

Page List