Posted on: 12/9/2014 2:10:06 AM | Views : 499

Here I follow a tutorial, and i success to insert into database. But I have tried out do the display all data from database but i fail to do  so. Hope that Pro here may able to guide and assist me out.
DataTable myTable = new DataTable(); protected void Page_Load(object sender, EventArgs e) { myTable.Columns.Add("DESCRIPTION"); myTable.Columns.Add("NAME"); if (!this.IsPostBack) { for (int i = 0; i < 2; i++) // LOAD TEXTBOX FOR EXAMPLE { myTable.Rows.Add(myTable.NewRow()); } Bind(); } } protected void Bind() { Repeater1.DataSource = myTable; Repeater1.DataBind(); if (Repeater1.Items.Count == 0) lblMessage.Text = "Click the button ...

Go to the complete details ...