[Mono-list] CodeBehind Problems

Gonzalo Paniagua Javier gonzalo at ximian.com
Fri Nov 18 15:15:14 EST 2005


On Fri, 2005-11-18 at 20:28 +0100, Marek Habersack wrote:
> On Fri, Nov 18, 2005 at 09:14:05AM -0700, Ken Swift scribbled:
> > I apologize...what I was trying to say is that none of my compiled code is
> > firing (ie, page_load events). In my HelloWorld example I simply set the
> > "Text" property of an asp:literal control in the page_load event and that
> > worked fine, but in my more complex example none of my page load events
> > fired.
> >  Thanks and sorry for missleading -- Ken
> Try putting this at the top of your aspx file:
> 
> <%@ Page Language="C#" CodeBehind="yourfile.aspx.cs" AutoWireupEvents="true" Inherits="YourNamespace.YourClass"%>
>                    ^^or VB, depends on what you're using
> 
> The important bit is the AutoWireupEvents attribute, which tells the ASP.NET

It's AutoEventWireup. Let me insist once more in a self-contained test
case.

-Gonzalo





More information about the Mono-list mailing list