RE: Usercontrol Page_Load not firing.

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Yes:

private void InitializeComponent()
{
this.Load += new System.EventHandler
(this.Page_Load);
}

I don't use the designer though - seems more trouble than it's worth to
me.

> Is the Event wired up?
>
> Go to designer of the ascx, in the property pane select the control, click
> the actions tab (lightning thumb) and see if Load has a method defined.
>
> Good luck!
>
> Jason Lind
>
> "Sosh" wrote:
>
> > Hi,
> >
> > Could anybody suggest a reason why the Page_Load method is not happening
> > in a dynamically loaded user control? (All of the content from the ascx
> > is being displayed though).
> >
> > Thanks
> >
>
.



Relevant Pages

  • RECCOMENDED: "Plane Simple: B-58 Hustler" on the Military Channel
    ... it is worth a watch if it comes on again. ... well as other crew members and the chief designer. ... Plenty of footage, from test flights to record breaking flights, and ... They were enthusiastic and many fliers and crew members called the ...
    (rec.aviation.military)
  • Evaluating D2005, help needed.
    ... Because we don't want to make the same mistake twice, i'm now looking if D2005 is a usable replacement for D8 webdevelopment. ... But since I don't use the designer anymore, ... For now I use HTML-kit to write my aspx / ascx files. ... Unofficial patch for QC#14007 ...
    (borland.public.delphi.non-technical)
  • When base class is used for UserControl, VS designer fails to load ASCX file
    ... The problem is that I cannot use VS graphical designer to design my ASCX ... they inherit from my base class (which is in fact derived from ... such controls everything wokrs fine. ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • Re: CrossKylix
    ... there are some worthy contenders already. ... Qt Designer ... are worth having a look at. ... Both Trolltech and The Kompany have more credibility among ...
    (borland.public.delphi.non-technical)
  • Re: Bad design
    ... Steve M ... machines or human-made structures. ... biological systems have a designer. ... But for what it's worth, ...
    (talk.origins)