如何在page_load事件中自动禁用asp.net checkbox1?
只需要vb.net代码!!
答案 0 :(得分:3)
禁用复选框很容易
checkbox1.Enabled = False
在Page_Load事件中,它看起来像这样。
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
''# checkbox1 should not be enabled on page load.
checkbox1.Enabled = False
End Sub
答案 1 :(得分:0)
protected sub page_load
checkboxname.Enabled = false
end sub