how to show a pdf file from a dataset

Last post 01-19-2008 6:39 AM by prajeeshkkindia. 2 replies.

Sort Posts:

  • how to show a pdf file from a dataset

    01-18-2008, 7:22 AM

     hello.

           i have created a dataset using C# class. this dataset returns the path of a pdf file. how can i show this pdf file in my asp.net web form on click of a button.

    i am using asp.net 2.0

     

      thanks in advance.
     

  • Re: how to show a pdf file from a dataset

    01-19-2008, 4:49 AM
    Answer

    Hi,

    You can use a GridView and bind dataset to the gridview. You can use an <ItemTemplate> to display the link with the pdf. To see an example, check this post

     

    HTH,
    Suprotim Agarwal

    -----
    http://www.dotnetcurry.com
    -----
     

  • Re: how to show a pdf file from a dataset

    01-19-2008, 6:39 AM
    • Participant
      1,334 point Participant
    • prajeeshkkindia
    • Member since 12-15-2007, 1:58 AM
    • India
    • Posts 245

    you can bind that dataset with a gridview

    The syntax is

    Gridview1.Datasource=MyDataset;

    GridView1.Databind();

    and Right click the grid view->show smarttag->edit colums->Add a hyperlink field->Set the datanavigate formatstring,and data navigate field.

    If this post is helpful, please mark as an answer.

    Regards,
    Prajeesh.
    Software Engineer
    Speridian Technologies




Page 1 of 1 (3 items)