小编Joe*_*ook的帖子

ASP.NET确认在网格中删除

我需要向网格添加确认删除操作.问题是呈现"删除"链接的方式.我的网格是用vb.net中的代码构建的.我有这个

colDelete.AllowDelete = True
colDelete.Width = "100"
AddHandler CType(gridSavedForLater, Grid).DeleteCommand, AddressOf dgDeleteSelectedIncident
Run Code Online (Sandbox Code Playgroud)

子是以下

Sub dgDeleteSelectedIncident(ByVal sender As Object, ByVal e As GridRecordEventArgs)

    Dim message As String = "Are you sure you want to delete this incident?"
    Dim caption As String = "Confirm Delete"
    Dim result = System.Windows.Forms.MessageBox.Show(message, caption, Windows.Forms.MessageBoxButtons.OKCancel, Windows.Forms.MessageBoxIcon.Warning)

    'If (result = Windows.Forms.DialogResult.Cancel) Then
    'Else
    ' MessageBox("Are you sure you want to delete this incident?")
    'Get the VehicleId of the row whose Delete button was clicked
    'Dim SelectedIncidentId As …
Run Code Online (Sandbox Code Playgroud)

vb.net asp.net

0
推荐指数
1
解决办法
3644
查看次数

标签 统计

asp.net ×1

vb.net ×1