473,396 Members | 2,082 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.

Page_Load() not being called

hi!

i have a weird problem with my c# asp.net webform. i am using
Response.Redirect("newPage.aspx") from the "oldPage.aspx". but the
Page_Load() function of "newPage.aspx" is not being called. suggestions
welcome and thanks in advance.
Nov 17 '05 #1
4 9851
Hi,

Set a breakpoint inside the Page_Load method - it should be get called...

Regards - Octavio

"Newbie" <Ne****@discussions.microsoft.com> escribió en el mensaje
news:3E**********************************@microsof t.com...
hi!

i have a weird problem with my c# asp.net webform. i am using
Response.Redirect("newPage.aspx") from the "oldPage.aspx". but the
Page_Load() function of "newPage.aspx" is not being called. suggestions
welcome and thanks in advance.

Nov 17 '05 #2
already placed breakpoints and it's not stopping at the breakpoint.

"Octavio Hernandez" wrote:
Hi,

Set a breakpoint inside the Page_Load method - it should be get called...

Regards - Octavio

"Newbie" <Ne****@discussions.microsoft.com> escribió en el mensaje
news:3E**********************************@microsof t.com...
hi!

i have a weird problem with my c# asp.net webform. i am using
Response.Redirect("newPage.aspx") from the "oldPage.aspx". but the
Page_Load() function of "newPage.aspx" is not being called. suggestions
welcome and thanks in advance.


Nov 17 '05 #3


"Newbie" <Ne****@discussions.microsoft.com> wrote in message
news:A5**********************************@microsof t.com...
already placed breakpoints and it's not stopping at the breakpoint.


private void InitializeComponent()

{

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

}

do you subscribe to Load event like above?
--
Artur Borecki, MCP
Nov 17 '05 #4
problem solved:

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

was missing in the private void InitializeComponent()
"Newbie" wrote:
hi!

i have a weird problem with my c# asp.net webform. i am using
Response.Redirect("newPage.aspx") from the "oldPage.aspx". but the
Page_Load() function of "newPage.aspx" is not being called. suggestions
welcome and thanks in advance.

Nov 17 '05 #5

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

Similar topics

16
by: thejackofall | last post by:
Hi. I have a button called btnSelect on a web form. There is a handler for it. However, the Page_Load() gets called before the handler gets called. I want to do the following. In the...
13
by: z. f. | last post by:
Hi, i have a class that is derived from System.Web.UI.Page, and this is the class i use in my application as PageBase. all other page classes are deriverd from my PageBase instead of the...
5
by: Adam Clauss | last post by:
I have a webapp which consists of several different webforms. Basically: (1) view the contents of a database (2) one is to add a new entry (3) confirms the new entry. The third form, upon...
1
by: Jon | last post by:
Hi, I've set up a new web form (new.aspx) that inherits a BasePage class. The new web form contains an override Page_Load event. In BasePage, Page_Load is declared 'virtual'. In the new web...
2
by: magister | last post by:
Hello I have a default.aspx page with which has an iframe. In the code-behind of the default.aspx page it loads the 'src' attribute of the iframe. The iframe loads another aspx page, but...
6
by: Dot net work | last post by:
I've read quite a few threads on these groups about this. When someone says the following: "My Page_Load gets called twice on a button click postback" The replies are: "Do you have...
6
by: Olivier Matrot | last post by:
Hello, This has probably been asked several times, but It must be clarified for me. I would like to know why sometimes during a postback Page_Load is called after the function marked for...
5
by: Andy | last post by:
Hi all, I have a site with the following architecture: Common.Web.dll - Contains a CommonPageBase class which inherits System.Web.UI.Page myadd.dll - Contains PageBase which inherits...
1
by: puja | last post by:
hi all, I have this .aspx page for which the Page_load event occurs twice. I found out while debugging. After searching google, I tried checking with Page.Ispostback method and also had...
11
by: fiefie.niles | last post by:
I am using ASP.NET 2005 and I have a simple form. Page_Load calls a sub mySub that does not do anything (for testing purposes). But, Page_Load gets called twice. On every single ASPX page in my...
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
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...
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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.