473,320 Members | 1,825 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.

Inherited Page Won't Fire Postback Events

I have a page, which is inherited from another page (PageEx is what I call
it) All of our pages are based on PageEx because there is a bunch of logic
stuff we do in there. My problem is, that if I have a page that is
inherited from PageEx, the post back events don't get called on the page.
If I put back the page to inherit from UI.Page everything is fine except we
don't have database settings etc.

Anyone have any ideas?

Thanks!
James Hancock
Nov 18 '05 #1
4 1649
Make sure that your PageEx overrides PageLoad and calls the base logic (in addition to whatever else you want to do), e.g. (vb syntax

Protected Overrides Sub onload(ByVal e As EventArgs
MyBase.OnLoad(e
End Su

I think that will do it

Bil

----- James Hancock wrote: ----

I have a page, which is inherited from another page (PageEx is what I call
it) All of our pages are based on PageEx because there is a bunch of logic
stuff we do in there. My problem is, that if I have a page that is
inherited from PageEx, the post back events don't get called on the page.
If I put back the page to inherit from UI.Page everything is fine except we
don't have database settings etc

Anyone have any ideas

Thanks
James Hancock

Nov 18 '05 #2
Tried that. Still doesn't work.... no events firing.

(I was using On_Init in PageEx for my stuff)

"Bill Borg" <an*******@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
Make sure that your PageEx overrides PageLoad and calls the base logic (in
addition to whatever else you want to do), e.g. (vb syntax)

Protected Overrides Sub onload(ByVal e As EventArgs)
MyBase.OnLoad(e)
End Sub

I think that will do it.

Bill

----- James Hancock wrote: -----

I have a page, which is inherited from another page (PageEx is what I
call
it) All of our pages are based on PageEx because there is a bunch of
logic
stuff we do in there. My problem is, that if I have a page that is
inherited from PageEx, the post back events don't get called on the
page.
If I put back the page to inherit from UI.Page everything is fine
except we
don't have database settings etc.

Anyone have any ideas?

Thanks!
James Hancock

Nov 18 '05 #3
More info:

In the PageEx it sets the .text of a few controls (not the ones that have
the events on them) based on language stuff.

If I comment out this code, no problem and everything fires. However if I
don't, no go.

Changing the text of a control shouldn't matter should it!?

James Hancock

"James Hancock" <no************@darwinproductions.ca> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Tried that. Still doesn't work.... no events firing.

(I was using On_Init in PageEx for my stuff)

"Bill Borg" <an*******@discussions.microsoft.com> wrote in message
news:2A**********************************@microsof t.com...
Make sure that your PageEx overrides PageLoad and calls the base logic
(in addition to whatever else you want to do), e.g. (vb syntax)

Protected Overrides Sub onload(ByVal e As EventArgs)
MyBase.OnLoad(e)
End Sub

I think that will do it.

Bill

----- James Hancock wrote: -----

I have a page, which is inherited from another page (PageEx is what I
call
it) All of our pages are based on PageEx because there is a bunch of
logic
stuff we do in there. My problem is, that if I have a page that is
inherited from PageEx, the post back events don't get called on the
page.
If I put back the page to inherit from UI.Page everything is fine
except we
don't have database settings etc.

Anyone have any ideas?

Thanks!
James Hancock


Nov 18 '05 #4
James, I've been out of touch for a couple days...sorry for the delayed response. Did you get this figured out? Else, please reply with the bare bones version of PageEx and the subclassed page that fails, and I'll try it out

Bil

----- James Hancock wrote: ----

More info

In the PageEx it sets the .text of a few controls (not the ones that have
the events on them) based on language stuff

If I comment out this code, no problem and everything fires. However if I
don't, no go

Changing the text of a control shouldn't matter should it!

James Hancoc

"James Hancock" <no************@darwinproductions.ca> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl..
Tried that. Still doesn't work.... no events firing
(I was using On_Init in PageEx for my stuff
"Bill Borg" <an*******@discussions.microsoft.com> wrote in message

news:2A**********************************@microsof t.com..
Make sure that your PageEx overrides PageLoad and calls the base logic
(in addition to whatever else you want to do), e.g. (vb syntax
Protected Overrides Sub onload(ByVal e As EventArgs

MyBase.OnLoad(e
End Su
I think that will do it
Bil
----- James Hancock wrote: ----
I have a page, which is inherited from another page (PageEx is what I

cal
it) All of our pages are based on PageEx because there is a bunch of
logi
stuff we do in there. My problem is, that if I have a page that i
inherited from PageEx, the post back events don't get called on the
page
If I put back the page to inherit from UI.Page everything is fine
except w
don't have database settings etc
Anyone have any ideas
Thanks

James Hancoc
>>>>

Nov 18 '05 #5

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

Similar topics

4
by: James Hancock | last post by:
I have a page, which is inherited from another page (PageEx is what I call it) All of our pages are based on PageEx because there is a bunch of logic stuff we do in there. My problem is, that if...
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
1
by: Shaun | last post by:
I am using a base page (I think they're also called master pages) as a base that my webforms inherit from. The base page controls formating and common functions used throughout the site. This all...
7
by: UJ | last post by:
I've got a page with a user control on it. While the page is loading, it needs to check certain conditions of the user object to enable/disable things on the screen. Currently in the page_load of...
5
by: Fred | last post by:
hi, i have a page written by someone else w/ a few user controls inside it(w/ user controls inside em too) - what i dont get is the order different page_inits, page_loads, cashed and postback...
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...
9
by: Gummy | last post by:
Hello, I created a user control that has a ListBox and a RadioButtonList (and other stuff). The idea is that I put the user control on the ASPX page multiple times and each user control will...
3
by: JR | last post by:
I know this is probably dumb but I have a web combo box that will drop down and I can select an item but SelectedIndexChanged doesn't fire. I tried to put the code in the ASP that says on the...
2
by: BillE | last post by:
I am using master/content pages, with a treeview in my master page. When the selected node changed event fires in the treeview, I redirect to the requested content page associated with the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
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...
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: 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...
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...

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.