It's been a while since I've done any .aspx, but my guess is that your new code is just defining a nested class inside the actual page class, and that nested class is never used. Try just overriding OnInit without the "index" class declaration.
mostafaxx wrote: > > hello every one, > i'm having a code problem > why does the following code work http://monobin.com/1248/ > and the following doesn't http://monobin.com/1249/ > > > all i've done in the secound code is : > > turn off the AutoEventWireup > write a new class declaration that inherits from Page and then in the > constructor i had been trying to register my method to the Page.Load Event > handler : this.Load += Page_Load; > but the event handler code is never executed > ........... > > i've also tried to override the Page.OnInit() and the Page.OnLoad() > methods but also the code didn't run : http://monobin.com/1250/ > -- View this message in context: http://mono.1490590.n4.nabble.com/Code-Problem-tp3839138p3839884.html Sent from the Mono - ASP.NET mailing list archive at Nabble.com. _______________________________________________ Mono-aspnet-list mailing list [email protected] http://lists.ximian.com/mailman/listinfo/mono-aspnet-list
