G
gerry
based on MSPress's ASP.NET 2.0 Applications Advaced Topics ( Table 12-3
p.472 ), and
most events should be automatically wired up when @Control
AutoEventWireup="true".
ie. Page_InitComplete() {} should be invoked automatically without having to
wire up the event as : Page.InitComplete+=new
EventHandler(Page_InitComplete);
It seems that this is only true for a fairly restricted set of events which
does not include Page_InitComplete.
I thought that maybe a call to UserControl.InitializeAsUserControl() ( ibid
Table12-2 ) might be necessary but this method seems to be non-existant.
Is the documentation wrong or have I missed a setting somewhere ?
Also, when working with WebForms,UserControls etc in VS2005, thecontrol/page
itself is no longer listed on the control list at the top of properties
window as it was in vs2003 which means that all properties & events must be
set/added/wired up manually unlike other controls. Is there a new way to
access properties and events for WebForms & UserControls or is there a
setting i've missed to add these back to the property editor or did MS
remove this capability for some reason ?
Gerry
p.472 ), and
most events should be automatically wired up when @Control
AutoEventWireup="true".
ie. Page_InitComplete() {} should be invoked automatically without having to
wire up the event as : Page.InitComplete+=new
EventHandler(Page_InitComplete);
It seems that this is only true for a fairly restricted set of events which
does not include Page_InitComplete.
I thought that maybe a call to UserControl.InitializeAsUserControl() ( ibid
Table12-2 ) might be necessary but this method seems to be non-existant.
Is the documentation wrong or have I missed a setting somewhere ?
Also, when working with WebForms,UserControls etc in VS2005, thecontrol/page
itself is no longer listed on the control list at the top of properties
window as it was in vs2003 which means that all properties & events must be
set/added/wired up manually unlike other controls. Is there a new way to
access properties and events for WebForms & UserControls or is there a
setting i've missed to add these back to the property editor or did MS
remove this capability for some reason ?
Gerry