To "refresh" a SqlDataSource.
Published on Sun 27 Jul 2008 10:07 ( 1 year, 7 months ago)
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();
}
Related posts:
- To "refresh" a SqlDataSource.
- asp:ControlParameter vs asp:FormParameter
- output a line in a batch *without* crlf
- Write code with no getters???
- Dump SQL Server Express' DB Schema
- My suggestions on Web2py's route design
- Good comparing of GAE Data Store .vs. Amazon Simple DB .vs. MS SSDS
- Very good articles on MVC, MVP and more.
- Presenter First approach in MVP
- ASP.NET MVC Preview 3 just released
Search related in web:
Custom Search