simple question

jaws1021
jaws1021 used Ask the Experts™
on
I have a very simple question how to get Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init ? I know how to get page load , but I don't know this..
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
I am not understanding the question.  You should be able to add the lines below to your code-behind.  This will handle the Init event of the page

Protected Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

End Sub

Author

Commented:
do you mean just type it? You know how if you double click anywhere in the design you get page load automatically on code, I was thinking anything like that on page init?
Yes, you can add in this section into that same area.  Each sub must be separate, for instance, it will look like this:

Protected Sub Page_Load()

End Sub

Protected Sub Page_Init()

End Sub

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial