473,395 Members | 1,541 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,395 software developers and data experts.

Overiding Page Class

Hey im Overiding OnInit in my Custom Page class
What i want to be able to do is pass in Some Values
Ie PageID PageCategory, PageSubCategory
How can i pass in some Vairables So my Custom Page class can see these
Imports System.Web

Imports System.Web.UI

Imports System.Data

Namespace MTT.PageClasses

Public Class GenericPage

Inherits System.Web.UI.Page

Protected Overrides Sub OnInit(ByVal e As System.EventArgs)

Dim myCtrl As Control

For Each myCtrl In Page.Controls

Response.Write(myCtrl.ID)

Next

End Sub

End Class

End Namespace
Also another question is it possible to Inherit The page class more than
once
I want a GenericPageClass That Does Some Work on OnInit

I want Another MainPageClass That Inherits Generic Page Class And i want to
do some work OnInit Int this sub
The problem seems that Im using Overload that cuases only One of the OnInits
To Fire

Is there a way i can get these 2 OnInit Subs Perform Different to the one
page

Thanks

Nov 17 '05 #1
0 1371

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

Similar topics

0
by: GMan | last post by:
Is there a way to override an event that is inherted from a base class so it won't be seen in the derived class? Also is there a way to override an override method that is inherted frmo a base...
4
by: Ronnie | last post by:
Please look at the code below, class BaseCol { public: virtual void a() { cout << "BaseCol::a" << endl; } virtual void b() { cout << "BaseCol::b" << endl; } }; class ChildCol1 : public...
2
by: Pankh | last post by:
Hi, Is it possible to restrict overiding a function in derived class? To be more clear, I have base class with function foo() and I do not want any derived class to implement foo() again. Always...
3
by: Vincent V | last post by:
Hey im Overiding OnInit in my Custom Page class What i want to be able to do is pass in Some Values Ie PageID PageCategory, PageSubCategory How can i pass in some Vairables So my Custom Page class...
4
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
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
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
7
by: GaryDean | last post by:
In my old 1.1 apps the default was MS_POSITIONING="GridLayout" and Textboxes and labels and such always had POSITION: absolute; and I never had any distortion when the page was rendered. Life was...
3
by: vainstah | last post by:
Hello Guys and Galls, To start off, I have reached the solution I was looking for, but I would like comments and feedback on the solution I have reached and tips/tricks on making it more elegant....
3
by: truezplaya | last post by:
I have my collectionOfCars and my car class. In my car class i have written public override string ToString() { return String.Format(_carColour + " " + _carMake); }
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
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
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...

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.