Re: Best way to pass variable between page and control
From: John Saunders (johnwsaundersiii)
Date: 12/28/04
- Next message: Cowboy (Gregory A. Beamer) - MVP: "RE: how to use Begintransaction ?"
- Previous message: John Saunders: "Re: Custom Validation with client and server side functions"
- In reply to: darrel: "Best way to pass variable between page and control"
- Next in thread: darrel: "Re: Best way to pass variable between page and control"
- Reply: darrel: "Re: Best way to pass variable between page and control"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 28 Dec 2004 14:30:20 -0500
"darrel" <notreal@hotmail.com> wrote in message
news:O%23QTB3Q7EHA.3120@TK2MSFTNGP12.phx.gbl...
> I'm still trying to fully understand how best to pass variables between
> pages/usercontrols/each other.
>
> On a current site I've done, I've had one userControl do the logic and set
> the variable, and then I had other usercontrols simply read this by
> traversing the class structure:
> siteClass.userControlClass.specficVariable.
Your page and your UserControl are both instances of classes. These classes
can have properties. The page can pass data to a UserControl by setting
properties of the UserControl.
John Saunders
- Next message: Cowboy (Gregory A. Beamer) - MVP: "RE: how to use Begintransaction ?"
- Previous message: John Saunders: "Re: Custom Validation with client and server side functions"
- In reply to: darrel: "Best way to pass variable between page and control"
- Next in thread: darrel: "Re: Best way to pass variable between page and control"
- Reply: darrel: "Re: Best way to pass variable between page and control"
- Messages sorted by: [ date ] [ thread ]