473,396 Members | 2,099 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,396 software developers and data experts.

Events not raised

There're 2 pages: a login page and a page where users redirect after login
to.
All my pages have "AutoEventWireup=false" (VS.NET requires it?). And my
first (login) page's code has Page_Load event handler and this handler
called
automatically. No InitializeComponent() needed to assign event handler.
But the second page's Page_Load is not called anyway. With IDE generated
InitializeComponent(). Nor when I delete it. I reassigned all event handlers
of both
pages by clearing method names in Properties box, saving/rebuilding and
assigning
them again (in same toolbox). In this case, the 1st page does not generate
InitializeComponent() handler, but the 2nd one generates it, where it
contains
code like this:

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

But this does not work! Page_Load is not called (I tested with debugger)!

Any ideas?
Nov 19 '05 #1
1 895
On Mon, 18 Jul 2005 15:01:05 +0900, "Tumurbaatar S."
<sp********@magicnet.mn> wrote:
There're 2 pages: a login page and a page where users redirect after login
to.
All my pages have "AutoEventWireup=false" (VS.NET requires it?). And my
first (login) page's code has Page_Load event handler and this handler
called
automatically. No InitializeComponent() needed to assign event handler.
But the second page's Page_Load is not called anyway. With IDE generated
InitializeComponent(). Nor when I delete it. I reassigned all event handlers
of both
pages by clearing method names in Properties box, saving/rebuilding and
assigning
them again (in same toolbox). In this case, the 1st page does not generate
InitializeComponent() handler, but the 2nd one generates it, where it
contains
code like this:

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

But this does not work! Page_Load is not called (I tested with debugger)!

Any ideas?


Are you sure you have the correct cod behind file associated with the
ASPX page (as declared at the top of the HTML in the <% %> tags):

<% ... Codebehind="MyPage.aspx.vb" Inherits="WebApplication1.MyPage"%>

Hope this helps

Tom
Nov 19 '05 #2

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

Similar topics

4
by: serge calderara | last post by:
Dear all, I have a class wich is raising events as normally it should do. having a form in the same assembly wich is catching those events works fne. Raise events gets catch normaly within the...
16
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
5
by: Daniel | last post by:
Hey guys When you hook an event (c# 2.0 syntax): myEvent += MyMethodToFire; You need to also unsubscribe it to avoid a resource leak so that the object it is in gets garbage collected like so...
11
by: MikeT | last post by:
This may sound very elementary, but can you trap when your object is set to null within the object? I have created a class that registers an event from an object passed in the constructor. When...
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: 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: 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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.