By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Inheritance to web user control

P: n/a
I have a class called BasePage that inherits
System.Web.UI.Page

All my aspx pages inherit a class called BasePage

On each page I have a web user control called ClientInfo

In the BasePage I get the Client ID (CID) from the
querystring, I want to be able to access CID from the web
user control ClientInfo.

How do I get variables or properties from the BasePage
while in the code behind the web user control?

I can access them just fine on my pages that inherit
BasePage, but can't figure out how to acess them on the
web user control.

TIA

Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Got it.

BasePage myPage = (BasePage)this.Page;
Response.Write(myPage.CID);

-----Original Message-----
I have a class called BasePage that inherits
System.Web.UI.Page

All my aspx pages inherit a class called BasePage

On each page I have a web user control called ClientInfo

In the BasePage I get the Client ID (CID) from the
querystring, I want to be able to access CID from the webuser control ClientInfo.

How do I get variables or properties from the BasePage
while in the code behind the web user control?

I can access them just fine on my pages that inherit
BasePage, but can't figure out how to acess them on the
web user control.

TIA

.

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.