This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
是否可以从函数返回退出?
这样我就可以使用函数 MyExit 退出 Page_Load 函数
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
MyExit() 'Exit
End Sub
Private Function MyExit() As Exit
Return Exit
End Function
Protected Sub Page_Load()
Dim bExit as Boolean = MyExit()
If bExit then Exit
End Sub
Private Function MyExit() As Boolean
Dim bOk as Boolean
'[...]
Return bOk
End Function