Error with Page_Load

G

Guest

I have a Page load in my code:-
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Doing Something here
End Sub

And i want to call it by typing in "page_load()"[Code below] at the end of
my page but
its giving me the error:-" Argument not specified for parameter 'e' of
'Private Sub Page_Load(sender As Object, e As System.EventArgs)'. AND
Argument not specified for parameter 'sender' of 'Private Sub
Page_Load(sender As Object, e As System.EventArgs)'.
Any help?
 
M

Martin Dechev

Hi,

Try

Page_Load(Me, EventArgs.Empty)

or better move the code into another method - it's a better design.

Hope this helps
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top