Call Bind Method on Page_Load()
protected void Page_Load(object sender, EventArgs e)
{
if(!page.ispostback)
{
Bind();
}
}
Public Void Bind()
{
da = new SqlDataAdapter("select feedback from Table1", con);
DataSet ds = new DataSet();
da.Fill(ds);
Repeater1.DataSource = ds;
Repeater1.DataBind();
}
and after Item_command as u did-
protected void Repeater1_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Update")
{
string str1 = ((TextBox)e.Item.FindControl("TextBox1")).Text;
cmd = new SqlCommand("update Table1 set feedback=@feedback where status='true'", con);
cmd.Parameters.AddWithValue("@feedback", str1);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Bind();
}
}