Mega Code Archive
Categories
/
ASP.Net Tutorial
/
Data Binding
Use a CommandField to customize the appearance of the Edit, Delete, Update, Cancel, and Select buttons
<%@ Page Language="C#" %>
Show CommandField
" SelectCommand="SELECT Id,Title,Director FROM Products" UpdateCommand="UPDATE Products SET Title=@Title, Director=@Director WHERE Id=@Id" DeleteCommand="DELETE Products WHERE Id=@Id" Runat="server" />
File: Web.config