473,386 Members | 1,752 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,386 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 1370

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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
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.