'Page' property

Results 1 to 2 of 2

Thread: 'Page' property

  1. #1
    Join Date
    Dec 1969

    Default 'Page' property

    Hi there, <BR><BR>User controls have a &#039;Page&#039; property which allows one to reference the containing page.<BR><BR>However, what if I want to access custom properties of the containing page from the user control? I have to cast &#039;Page&#039; like this... <BR><BR>CType(Page, MyPage).myProperty<BR><BR>Is there a way to avoid all this casting other than adding a new property to the user controls of the &#039;MyPage&#039; type and pointing it to the &#039;Page&#039; property? <BR><BR>Seems a bit ridiculous to have to add a whole new property to a class which has the same value of another property of the same class but just happens to be of a different type. <BR><BR>Cheers, <BR><BR>WT.

  2. #2

    Default RE: 'Page' property

    Object Oriented Programming

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts