F
Fabiano
Please,
i have a ASPX that contains two usercontrols, TOP.ASCX and CENTER.ASCX. The
first one has a dropdown list inside of it and the second one has a
Datalist.
When user changes the SelectedItem from the dropdown i need to change the
databind from my Datalist.
My doubt are. How can i read from inside the CENTER.ASCX, the dropdown
values from TOP.ASCX? I think that OOP don't let me do that, 'cause of
encapsulation. It's right?
At my fashion i'm using a session at the ASPX, something like this:
Session["CodigoProdutora"] =
(Page.FindControl("Topo1").FindControl("cboProdutora") as
DropDownList).SelectedValue;
But i guess that there's another pretty way that i do the samething without
use Sessions. There's?
Thks if you folks could send me some help.
Fabiano
i have a ASPX that contains two usercontrols, TOP.ASCX and CENTER.ASCX. The
first one has a dropdown list inside of it and the second one has a
Datalist.
When user changes the SelectedItem from the dropdown i need to change the
databind from my Datalist.
My doubt are. How can i read from inside the CENTER.ASCX, the dropdown
values from TOP.ASCX? I think that OOP don't let me do that, 'cause of
encapsulation. It's right?
At my fashion i'm using a session at the ASPX, something like this:
Session["CodigoProdutora"] =
(Page.FindControl("Topo1").FindControl("cboProdutora") as
DropDownList).SelectedValue;
But i guess that there's another pretty way that i do the samething without
use Sessions. There's?
Thks if you folks could send me some help.
Fabiano