.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

code for download notepad file

Posted By: Catherine     Posted Date: May 06, 2011    Points:5   Category :ASP.Net
hi i would like to download notepad file which i created in my application

please tell content type and addheader

Responses
Author: Dhiraj Ranka             
Posted Date: May 06, 2011     Points: 20   

Hi,

If you mean my .txt file then the Content-Type = "text/plain"

and

If it is .exe then you can use Content-Type = "application/octet-stream"

Hope this helps

Hope this helps.

Thanks & Regards,
Dhiraj Ranka
http://www.twitter.com/dhirajranka | http://www.dhirajranka.com
Author: Maverick             
Posted Date: May 09, 2011     Points: 20   

Hello,

You can use Content-Type = "text/plain" in the respone.write() statement

Hope it helps


Thanks,
Maverick


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend