Access control variables from image rendering aspx

J

Jeronimo Bertran

I have a WebControl that stores information on the StateBag. Within this
control I have a bitmap image which is rendered using another aspx page as
the URL for the bitmap. I am basically using an Image tag and the
programatically setting the URL to another aspx page. The Page_Load for
the image URL will do the actual rendering. However within the Page_Load I
would like to be able to access the StateBag from the parent control. Is
there any way to do this?

Thanks,

Jeronimo Bertran
 
T

Teemu Keiski

Hi,

Page and controls all have separate StateBag collections. You would need to
have generic controller control that handles this stuff or again just manage
these via properties of controls.
 

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

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,007
Latest member
obedient dusk

Latest Threads

Top