更新DetailsView后,点击DetailView上的Update Command按钮;我想将其中一个字段设置为“完成”。我在这里做错了什么?请。帮助。这是我背后的代码:
Protected Sub Test(sender As Object, e As System.Web.UI.WebControls.DetailsViewUpdatedEventArgs) Handles DetailsView1.ItemUpdated
If IsPostBack Then
Dim TextBox7 As TextBox = TryCast(DetailsView1.Rows(0).Cells(0).FindControl("TextBox7"), TextBox)
TextBox7.Text = "Complete"
End If
End Sub