Acessing property

  • Thread starter Thread starter Steve Peterson
  • Start date Start date
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
 
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.
 
Back
Top