Create a PDF file from sql query result in code behind c# RRS feed

  • Question

  • User-674889045 posted


    I have few search panels in my ASP.NET page for gerenrating reports. So the users generate the report based on the search key. what I need to do is, when users put the search keys in the textbox field and click the button to generate report, in the code behind, the result is queried from SQl and output as PDF file to the user.

    is there any way that I can have both process on one button click event? I usually have 2 different buttons, one for quering the result form SQL server and show them in the listview and the second button to print the pdf file of the report.


    Thursday, April 28, 2016 11:05 PM