how to give a link to download a pdf file in asp.net c#

Source Code:-


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="downloadlink.aspx.cs" Inherits="downloadlink" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    Here You can downlaod Dot.net book in PDF format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    
        <a href="PDF_Files/dotnet.pdf" target="_blank"> Download</a>
    </div>
    </form>
</body>
</html>

Note :- you need to create a folder with PDF_Files  name .



Out-put:-
how to give a link to download a pdf file in asp.net c# how to give a link to download a pdf file in asp.net c# Reviewed by NEERAJ SRIVASTAVA on 12:10:00 PM Rating: 5

10 comments:


  1. This technical post helps me to improve my skills set, thanks for this wonder article I expect your upcoming blog, so keep sharing...
    Regards,
    DOT NET Training Institutes in Chennai|DOT NET Training in Chennai

    ReplyDelete
  2. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Dot net training in Chennai | dot net course in Chennai

    ReplyDelete
  3. lovely blog with impressive content. thanks for sharing such a nice blog... Dot Net Training in Chennai | Java Training in Chennai

    ReplyDelete
  4. Excellent post!!!. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Web D School

    ReplyDelete
  5. I have to voice my passion for your kindness giving support to those
    people that should have guidance on this important matter.

    java training in chennai


    java training in bangalore

    ReplyDelete
  6. Great article, really very helpful content you made. Thank you, keep sharing.
    Comptia Network+ Certification Courses in Chennai | Best N+ Courses in Tambaram

    ReplyDelete
  7. Awesome post it's really useful from me..Kindly keep sharing such a nice post..Android Certifications Exam Center in Chennai | Best Android Exam in Mandaveli

    ReplyDelete
  8. very useful information. i am expecting more posts like this please keep updating us........
    CorelDraw Graphics Suite Certifications Center in Chennai | No.1 CorelDraw Courses in Saidapet

    ReplyDelete
  9. Awesome Blog with informative concept. Really I feel happy to see this useful blog, Great tips and its so easy to understand.
    No.1 ISTQB Certifications Exam Course in Chennai | Testing in Thiruvanmiyur

    ReplyDelete
  10. Pretty article! I found some useful information in your blog, it was awesome to read, thanks for sharing...
    Adobe InDesign Certification Courses in Chennai | No.1 InDesign Training in Adambakkam

    ReplyDelete

Powered by Blogger.