473,322 Members | 1,347 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,322 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 5199
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.