Buddies, I want to design a simple file download button in deafult.aspx. Can anyone provide me the detailed C# code behind it? Thanks in advance.
sandip250382
0
Newbie Poster
Recommended Answers
Jump to PostHere is one approach:
public void btnDownload_Click(object source, EventArgs e) { Response.Redirect("url_to_the_file_you_want"); }
Although this will OPEN a file.
All 2 Replies
Reply to this topic
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.