TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Interviews
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
Could someone please help me with a code for downloding a file without openning it by the browser, or the equivalent to "Save Target As" Command in the Internet Explorer.
By
Medyan ABDELHAMID
in
ASP.NET
on
Aug 11
2009
0
4.1k
1
Post Your Answer
Submit
Aug, 2009
13
Hi Medyan,
Generally if you specify an anchor tag can be used to allow user to download a file as follows
<a
href
=
"FilePath/SomeFile.Zip"
>
Download SomeFile
</a>
But in above case if the file is supported with MIME type on client browser then it will get opened on the client browser (like Excel Files, PDF Files etc.)
If you want to force user to down the file even if supported by MIME type then the solution is already provided at
http://aspalliance.com/259
0
Most Popular Job Functions
Developer (2375)
Programmer (1288)
Sr. Developer (825)
Sr. Programmer (449)
Fresher (398)
Tech Lead (378)
DBA (244)
Team Lead (187)
Project Lead (83)
Architect (28)
View All
MOST LIKED QUESTIONS
Why do you want to leave your current company?
What are the advantages of using REST in Web API?
What is ASP.NET Core?
How to iterate through ArrayList in jQuery?
What is the difference between TempData keep() and peek() function?
A class provides a default constructor for me. I write a constructor that takes a string as...
Can multiple catch blocks be executed in a C# program?
what is Sealed class
What were your responsibilities in your previous job ?
What Operating Systems Node.js Supports