如何在asp.net(vb)中的button_click()中单击另一个按钮后使链接按钮可见
如何在asp.net(vb)中的button_click()中单击另一个按钮后使链接按钮可见,
它显示错误为“对象引用未设置到对象的实例”。
我在我的代码中完成了此操作
Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim receipt As LinkButton = FormView1.FindControl("LinkButton1")
' receipt.Enabled = "true"
' receipt.EnableTheming = "true"
' receipt.EnableViewState = "true"
receipt.Visible = "true"
End Sub
How to make a link button visible after another button has been clicked in asp.net(vb) in button_click()
it says error as "Object reference not set to an instance of an object."
i've done this in my code
Protected Sub InsertButton_Click(ByVal sender As Object, ByVal e As System.EventArgs)
Dim receipt As LinkButton = FormView1.FindControl("LinkButton1")
' receipt.Enabled = "true"
' receipt.EnableTheming = "true"
' receipt.EnableViewState = "true"
receipt.Visible = "true"
End Sub
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
删除表单名称,如下所示:
Remove the form name like this:
或者像这样...
Or like this...