473,320 Members | 1,838 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,320 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 22 '05 #1
6 1586
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 22 '05 #2
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 22 '05 #3
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 22 '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 22 '05 #5


Apparently, the issue is that the "AutoEventWireup" attribute in the
page tag in the .aspx file was set to "false". I set it to "true" and
now I get into the page load event.

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


Apparently, the issue is that the "AutoEventWireup" attribute in the
page tag in the .aspx file was set to "false". I set it to "true" and
now I get into the page load event.

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

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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
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: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
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

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.