To "refresh" a SqlDataSource.


To "refresh" a SqlDataSource.

Published on Sun 27 Jul 2008 10:07 ( 1 year, 7 months ago)
ASP.NET Learning notes

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:


Search related in web:

Custom Search

RSS Feed

One click subscribe this blog in your google reader!

Be social!


Want to say something here? please sign in



Blog posts link to this page
What are friends tweeting?
Tags cloud
Monthly Archives