Acessing property

S

Steve Peterson

Hi

I have a web user control that is in an .aspx web form. I need to access a
property in the container .aspx page from the user control. I'm not quite
sure how to do this...

Can anyone help out?

TIA

Steve
 
K

Kevin Spencer

Page.PublicPropertyName

Note: By that, I don't mean literally "PublicPropertyName," but every
System.Web.UI.Control has a property called Page which returns a reference
to the containing Page. From there, you access the property by its name.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top