Situation:
Want to create a pop-up confirm message while clicking a button.
========
Solution:
try using,
< asp:Button ID="ooxx" runat="server" Text="Delete" OnCommand="ooxx" OnClientClick="return confirm('Sure to delete?');" >
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.
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.
訂閱:
文章 (Atom)