你好,
我这里有问题。我得到了一个数据表,数据显示在列表视图中。这是后面的代码功能。
Protected Sub ListView1_ItemCommand(ByVal sender As Object, ByVal e As ListViewCommandEventArgs)
If (e.CommandName) = "Sort" Then
Dim txteno As Label = DirectCast(e.Item.FindControl("lblID"), Label)
/* Error here Dim deletecommand As String = "delete from dt where ID=" & Convert.ToInt32(txteno.Text)
Session("dt").DeleteCommand = deletecommand
End If
End Sub
事情是当我按下删除按钮时出现错误,说“输入字符串的格式不正确”。有人知道这里有什么问题吗?