473,378 Members | 1,462 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Page_Load not firing

I have web user controls (ascx files) in multiple support assemblies; I'm
building on a Commerce Server SDK sample. My problem is that the code
behind Page_Load event is never getting called for the web user controls is
one assembly though the Page_Init is fired. The Page_Load has the
"Handles MyBase.Load" but still, when I step through the debugger the init
sub works and the load is fired executed. In all the other support
assemblies in the same solution the web user controls do work correctly.
So why would the load not fire?
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
....
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
...
End Sub
Thanks

Brad
Nov 17 '05 #1
5 7874
Hi Brad,

Is the method Page_Load not fired or it can't stop at a breakpoint in it?
It is weird that this problem only occur with one web form. Is the web form
different with others, for example, including any doubtful code or some
components which is never used in other web form?

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to
visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #2
Do you have the event wired up?

this.Load += new System.EventHandler(this.Page_Load);
"Brad" <no****@co.lane .or.us> wrote in message
news:Om*************@TK2MSFTNGP12.phx.gbl...
I have web user controls (ascx files) in multiple support assemblies; I'm
building on a Commerce Server SDK sample. My problem is that the code
behind Page_Load event is never getting called for the web user controls is one assembly though the Page_Init is fired. The Page_Load has the
"Handles MyBase.Load" but still, when I step through the debugger the init
sub works and the load is fired executed. In all the other support
assemblies in the same solution the web user controls do work correctly.
So why would the load not fire?
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent() End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
....
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
...
End Sub
Thanks

Brad

Nov 17 '05 #3
I do, I'm using VB so using "Handles MyBase.Load.".....which again works
fine in the other assemblies.

"Dino Chiesa [MSFT]" <di****@microsoft.com> wrote in message
news:el***************@tk2msftngp13.phx.gbl...
Do you have the event wired up?

this.Load += new System.EventHandler(this.Page_Load);
"Brad" <no****@co.lane .or.us> wrote in message
news:Om*************@TK2MSFTNGP12.phx.gbl...
I have web user controls (ascx files) in multiple support assemblies; I'm building on a Commerce Server SDK sample. My problem is that the code
behind Page_Load event is never getting called for the web user controls

is
one assembly though the Page_Init is fired. The Page_Load has the
"Handles MyBase.Load" but still, when I step through the debugger the init sub works and the load is fired executed. In all the other support
assemblies in the same solution the web user controls do work correctly.
So why would the load not fire?
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub

InitializeComponent()
End Sub

Private Sub Page_Init(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
....
End Sub
#End Region

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
...
End Sub
Thanks

Brad


Nov 17 '05 #4
> Is the method Page_Load not fired or it can't stop at a breakpoint in it?
Well, both...since it's not executing I can't step into it or hit a
breakpoint on it. I know it's not executing as I'm not getting back any
result from the load event processing...not even very simple results. It's
not occuring in a web form.....it's in web user controls....and all the web
user controls in one particular assembly (the forms are in the main web
assembly and the controls in questions are in a support assembly).

""¥xÆW·L³n§Þ³N³B¤ä´©³¡"" <lu******@online.microsoft.com> wrote in message
news:Nc**************@cpmsftngxa06.phx.gbl...
Hi Brad,

Is the method Page_Load not fired or it can't stop at a breakpoint in it?
It is weird that this problem only occur with one web form. Is the web form different with others, for example, including any doubtful code or some
components which is never used in other web form?

Luke

"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026?? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
http://www.microsoft.com/security/se...s/ms03-026.asp and/or to visit Windows Update at http://windowsupdate.microsoft.com to install the
patch. Running the SCAN program from the Windows Update site will help to
insure you are current with all security patches, not just MS03-026."

Nov 17 '05 #5
Hi Brad

Have you found the root cause for the problem?

Thanks,

Luke

(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: C K | last post by:
I am having trouble getting the page_load event to fire from within my usercontrol - my code is below, I'm sure I'm missing something simple. Just your basic web user control - I've just began...
7
by: Shane Bishop | last post by:
I've been fighting with the Page_Load event firing twice. I looked through this user group and saw several other people having similar problems. There were various reasons for it:...
2
by: Eric Maia | last post by:
I have a textbox (StartDateTextBox) in a UserControl on my page, that is supposed to have a date entered into it. I have a RequiredFieldValidator that has its ControlToValidate property set to the...
14
by: V. Jenks | last post by:
I'm a little rusty having not touched .NET for 6 months and I can't remember why Page_Load is happening twice in this code: private void Page_Load(object sender, System.EventArgs e) {...
2
by: Dave | last post by:
Hi, this is a follow-up to an earlier question but I really haven't found a definitive answer in my search If I have a Base and Derived webform, I've found that the dervived Page_Load event...
4
by: Seraph | last post by:
Again, I'm rather new here, so if I fail to follow any etiquette, please forgive me and let me know what I've done wrong, but I think this might interest quite a few people. One of my colleaques...
1
by: Ahmet Gunes | last post by:
Hi all, I check whether session is alive in Page_Load. If session is not alive then I want to navigate to another page, most probably the login page. But when a control, a button for...
0
by: jonelling | last post by:
I am having a problem where the page load event is not being fired for certain user controls that I load dynamically in placeholders. Here is what I'm doing in brief, with full test code supplied...
1
by: =?Utf-8?B?TWlrZXkgQmFieQ==?= | last post by:
Greetings Hopefully, I can be clear and concise on this one, but I'm confused. I have a page with a ListBox <- ODS <- BusinessObject and a button. The Parameter Source is 'None'. The Default...
1
by: Randy | last post by:
I converted a small (one aspx page) solution from VS2005 to VS2008. It was working fine and then all of a sudden, the Page_Load method is not firing. In the Page_Load method I've got some code...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.