DataGrid to join the audit function and delete confirmation dialog box [Figure] PCSKY (original)

xiaoxiao2021-03-06  115

DataGrid to join the audit function and delete confirmation dialog box [Figure] PCSKY Personal Home: http://www.soft123.comnewscheck.aspx (front code) < / HeaderStyle> < / Headerstyle> <

Headersty width = "50px"> NewsCheck.vb (code-behind) Private Sub DataGrid1_ItemDataBound (ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid1.ItemDataBound Dim btnDel As LinkButton Dim btnCheck As LinkButtonIf Not (E.Item.itemtype = _ listitemtype.Header or _ E.Item.ItemType = ListItemType.footer) THEN

'Add to confirm BTNDEL = E.Item.cells (5) .controls (0) BTNDEL.Attributes.add ("onclick", "Once you want to delete this record?') ")

'Treatment of the Audit button Btncheck = E.Item.cells (3) .controls (0) if btncheck.text = 1 Then btncheck.text = "Audited" btncheck.enabled = false else btncheck.text = "to be review" end If end if end sub 'Note: When the article is not reviewed, the "To Review" button is displayed, and the button will turn into a gray-not available.

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

New Post(0)