2008年3月27日 星期四

ASP.NET update control which binding a datasource

Problem:

The data in database had been modified and wish to update the data presended in control.

========

Solution:

Take a GridView, GridView1, binding to a SqlDataSource for example, you can try

GridView1.DataBind();

in your code.

沒有留言: