473,378 Members | 1,496 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 Won't Fire

I'm started a C# program that runs over an Access database. Initially, it's
supposed to load a field from a table into a dropdown list box. That wasn't
happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this
might be the case?
Nov 16 '05 #1
10 5200
Hi Curt

Check if your page_Load event is registered in the event handler (InitializeComponent

----- Curt Emich wrote: ----

I'm started a C# program that runs over an Access database. Initially, it'
supposed to load a field from a table into a dropdown list box. That wasn'
happening. When I did some diagnostics, it turned out that the program i
not even getting into the Page_Load() event. Do you have any idea why thi
might be the case

Nov 16 '05 #2

At this point, the only line in InitializeComponent is:
this.Load += new System.EventHandler(this.Page_Load);

Someone else told me about deleting the Page_Load and its handler and
then re-selecting that event from some dropdown in the IDE, which would
re-insert it and allow me to cut my code back in and VIOLA! it would
work. I've seen quirkly stuff like this in other environments. Problem
is, I couldn't see where they were getting a dropdown list to "select"
the Page_Load event from anywhere. Do you know about this?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #3
are you using code behind or scripting the page_load event in the aspx file?

if scripting, did you happen to paste the code into a page which inherits a
class that has the page_load defined in it's code?


"Curt Emich" <ce****@comcast.net> wrote in message
news:n6********************@comcast.com...
I'm started a C# program that runs over an Access database. Initially, it's supposed to load a field from a table into a dropdown list box. That wasn't happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this might be the case?

Nov 16 '05 #4
check if you jave this line of code

this.Load += new System.EventHandler(this.Page_Load);

in InitializeComponent()
On Tue, 6 Apr 2004 00:36:09 -0400, "Curt Emich" <ce****@comcast.net>
wrote:
I'm started a C# program that runs over an Access database. Initially, it's
supposed to load a field from a table into a dropdown list box. That wasn't
happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this
might be the case?


Nov 16 '05 #5
are you using code behind or scripting the page_load event in the aspx file?

if scripting, did you happen to paste the code into a page which inherits a
class that has the page_load defined in it's code?


"Curt Emich" <ce****@comcast.net> wrote in message
news:n6********************@comcast.com...
I'm started a C# program that runs over an Access database. Initially, it's supposed to load a field from a table into a dropdown list box. That wasn't happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this might be the case?

Nov 16 '05 #6
check if you jave this line of code

this.Load += new System.EventHandler(this.Page_Load);

in InitializeComponent()
On Tue, 6 Apr 2004 00:36:09 -0400, "Curt Emich" <ce****@comcast.net>
wrote:
I'm started a C# program that runs over an Access database. Initially, it's
supposed to load a field from a table into a dropdown list box. That wasn't
happening. When I did some diagnostics, it turned out that the program is
not even getting into the Page_Load() event. Do you have any idea why this
might be the case?


Nov 16 '05 #7


I'm definitely using code-behind.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #8


It's in there. Shouldn't I be able to get diagnostics written to the
screen if I write something like:

Response.Write("there");

I have this line in the InitializeComponent() method, but that doesn't
seem to be firing either. If so, I would think I'd get a "there"
written somewhere on my screen.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #9


I'm definitely using code-behind.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #10


It's in there. Shouldn't I be able to get diagnostics written to the
screen if I write something like:

Response.Write("there");

I have this line in the InitializeComponent() method, but that doesn't
seem to be firing either. If so, I would think I'd get a "there"
written somewhere on my screen.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #11

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

Similar topics

1
by: Greg | last post by:
In my ASP.NET application I have a button that when pressed, data needs to be saved based on what the user typed in. I have other controls on the same page that should be updated as a result of the...
4
by: Matthew Burnside | last post by:
We're creating several different websites all based on a common framework, including a base page from which all pages inherit. This page is responsible for rendering the page layout, etc. I'm...
2
by: John Lau | last post by:
Hi, Is there documentation that talks about the page lifecycle, the lifecycle of controls on the page, and the rendering of inline code, in a single document? Thanks, John
4
by: Christopher | last post by:
I am trying to load a UserControl which inherits from one of our customer classes which in turn inherits from UserControl. We use Page.LoadControl() from within our ASP.NET pages to load these...
15
by: H00ner | last post by:
Hello All Hope you can help Been pulling my hair out about a popup problem in ASP.NET. One of the forms i wrote requires the user to select a product from a list in a popup web form. the...
3
by: Jim Heavey | last post by:
Hello, I have a web application and I am unable to get the debugger to run on a particular page. I place a "stop" on the page load, but the program does not stop on the page load. If I go to...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
3
by: tarscher | last post by:
Hi all, I have a gridview populated with data coming from a dataset (created via the wizard). The data shown in the gridview is dependent on the the choice of a control (dropdown with...
0
by: manywolf | last post by:
I have an aspx page that fires the page load event twice for every load. I tried every fix that was suggested in all the posts on this and other forums. None changed the behavior. After one post that...
3
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
why will event's like on page load not fire in a master page that has been inherited? -- (i''ll be asking a lot of these, but I find C# totally way cooler than vb and there''s no go''n back!!!)...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...

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.