Roadies x4 winner --- balraj paji
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";
nyc
ReplyDelete