- WEB.CONFIG Code
- <system.webServer>
- <httpProtocol>
- <customHeaders>
- <add name="Access-Control-Allow-Origin" value="*"
- </customHeaders>
- </httpProtocol>
- <system.webServer>
First import itextsharp.dll in the solution and use three namespces (basically for pdf) using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html.simpleparser; Then Use the following code :- on each button click protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { BindGridDetails(GridView1); } } protected DataTable BindGridDetails(GridView GridView1) { ...
Comments
Post a Comment