Protected Shadows Sub Page_Load not executing?

Jan 29, 2008 at 6:51 AM
I'm trying to set some variables in the page load and it seems like it never fires?
the var then gets used in the .aspx page.
help?

---
sample code below:

Inherits CanvasFBMLBasePage

Public myVar as string
Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
MyBase.Api = FACEBOOKAPIKEY
MyBase.Secret = FACEBOOK_SECRET
MyBase.Page_Load(sender, e)

myVar = "123435"

End Sub
Jan 29, 2008 at 7:56 PM
Hi,

Try this

Protected Shadows Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Jan 29, 2008 at 11:15 PM
yes, i had added the Handles Me.Load also and the code never gets run.
Is there anthing else i'm missing?

This is asp.net 2.0, is there something in the page init?
the aspx page itself its just the page declartion and the fbml stuff.
if I do server tags <% %> in the aspx page, they get executed.
Jan 31, 2008 at 2:28 PM
problem solved.
on the aspx page, some reasone the AutoEventWireup was set to false, should be AutoEventWireup ="true"