我看了,但我想让它在页面的page_load()中执行。如下代码怎么改才行?谢谢了!
Private Sub DataGrid1_ItemDataBound(ByVal sender As System.Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs)
Dim hk As LinkButton
hk = e.Item.FindControl("kk")
hk.Visible = False
End Sub
目的就是让linkbutton控件在页面第一次运行时隐藏或显示。