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) { DataTable dt = new DataTable(); dt.Columns.Add("Student_ID", typeof(Int32)); dt.Columns.Add("Student_Name", typeof(string)); dt.Columns.Add("Education", typeof(string)); dt.Columns.Add("City", typeof(string)); DataRow dtrow = dt.NewRow(); dtrow["Student_ID"] = 1; dtrow["Student_Name"] = "Musakkhir";
hour of code activities,code.org dance party,hour of code | dance party,google studio code,code.org sign in,code org join,code.org minecraft,hour of code,types of coding,computer coding for beginners,coding websites,coding games,characteristics of algorithm,algorithms for beginners,how to write an algorithm,algorithm synonym,algorithm examples,types of algorithm,what is algorithm in computer,algorithm tutorial
Comments
Post a Comment