Mega Code Archive
Categories
/
ASP.Net Tutorial
/
Data Binding
Use a ButtonField to display a button in a GridView
You can use a ButtonField to represent a custom command or one of the standard edit commands. <%@ Page Language="C#" %>
Show ButtonField
" SelectCommand="SELECT Id, Name, Position FROM ProductCategories ORDER BY Position" UpdateCommand="UPDATE ProductCategories SET Position=@Position WHERE Id=@Id" Runat="server">
File: Web.config