I am trying to “refresh” a SqlDataSource in a postback action.  The basic idea is, user change some setting (which passed as paramters to the SqlDataSource) and need to “refresh” the query result. I was though to call some method in SqlDataSource but eventually I found the simplest way (maybe not that efficient) is call the object who have databinding with SqlDataSource’s DataBin() again.

e.g.

protected void Button1_Click(object sender, EventArgs e)
{
RadChart1.DataBind();
}



Leave a Comment