"Scott M." <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In a new VS 2005 ASP .NET Web Application Project (WAP), I'm looking at
> the .designer.cs file to see how the event handlers for my page controls
> are wired up to the events.
>
> I was expecting to see the delegates being associated with the event
> handling methods in the page (like in a Windows app), but instead found
> nothing in either the .aspx.cs or the .aspx.designer.cs file that seems to
> resemble anything having to do with wiring up events to the event
> handlers.
>
> So, my question is: where is this code?
>
No code for events if in yout aspx page you've got (default is true)
autoeventWireUp Attribute set to true.
So if you set this attribute to false you've got to override init event to
hook events to methods eg:
protected void Page_Load(object sender, EventArgs e)
{
...
}
override init(object sender, EventArgs e)
{
this.Load += new System.EventHandler(this.Page_Load);
}
HTH
--
Gianluca Gravina
http://blogs.ugidotnet.org/thinkingingrava