关于vb.net作网页开发的调用button_click的方法
用VB.net作网页开发,如何在page_load里调用button的单击事件?
[解决办法]
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Response.Write( "abc ")
End Sub
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Call Button1_Click(Nothing, Nothing)
End Sub
[解决办法]
楼上正解!