473,396 Members | 1,853 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.

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 1651
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.