|
Two issues.
One.. you have AutoEventWireup set to FALSE.. which means that ASP.NET events like Page_Load dont have handlers assigned automatically.. Handlers are set like this: (C#)
this.Load += new System.EventHandler(this.Page_Load);
There is a similar yet different format for VB ill dig up here in a minute.
If you set AutoWireUp to True, then it will execute the Page_Load event handler method.
The error you are getting now, is related to the factor that you cant have two functions with the same signature in the same class. Your Code in front (ASPX page with a script tag) and your Code Behind are both PARTIAL classes.. which mean on compile they come toghether as one class.
So, although you can overload a method (have multiple methods with the same name but different signatures), you cant overload a method with the SAME signature.. So if you remove the empty Page_Load from your code behind (or move it from the Inline code to the Code Behind page), you will only have One Page_Load(Object,System.EventArgs) method signature.
__________________
The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at or repair. -Douglas Adams
|