ASP.NET DATALIST editing template

xiaoxiao2021-03-06  41

DataList provides related editing templates, but with DataGrid is that DataList does not edit buttons.

To use the editing function in DataList.

You can add a button in an item template, both of LinkButton and Button.

Setting this button with the DataList's editing event in CommandName.

Such as:

CommandName = "Edit"

Update Button You can use the commandName = "Update" Cancel button to use the commandName = "Cancel" to remove the button to use CommandName = "Delete" to be implemented.

转载请注明原文地址:https://www.9cbs.com/read-112284.html

New Post(0)