Hello CS,
I've also seen your another thread "Visual Studio and PreInit handler" and
have posted in there. Is the problem here the same one as that thread?
As I've mentioned in that thread, for ASP.NET 2.0 page, as long as you set
the "AutoWireupEvent" to "true", you only need to put the correct named
page event handler function in codebehind and the runtime should
automatically register the event handler for you. And the "PreInit" is
surely of this case.
==============
public partial class nav_menupage : System.Web.UI.Page
{
protected void Page_PreInit(object sender, EventArgs e)
{
Response.Write("<br/>Page_PreInit.....");
}
.............
==============
Is there anything incorrect in the PreInit handler's definition or any
other programmatic code whch has turned of the "AutoEventWireup"?
BTW, for MasterPage and ascx usercontrol, they do not have "PreInit" event,
therefore, you should not put PreInit event handler in these two
components' codebehind.
Please feel free to let me know if there is anything else particular in
your scenario.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.