Access control variables from image rendering aspx

Discussion in 'ASP .Net' started by Jeronimo Bertran, Nov 11, 2003.

  1. 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
     
    Jeronimo Bertran, Nov 11, 2003
    #1
    1. Advertising

  2. Jeronimo Bertran

    Teemu Keiski Guest

    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.


    --
    Teemu Keiski
    MCP, Microsoft MVP (ASP.NET), AspInsiders member
    ASP.NET Forum Moderator, AspAlliance Columnist




    "Jeronimo Bertran" <> wrote in message
    news:Xns94308274FA91Ajeronimobertrancom@207.46.248.16...
    > 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
    >
    >
    >
     
    Teemu Keiski, Nov 12, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeronimo Bertran
    Replies:
    2
    Views:
    297
    Jeronimo Bertran
    Nov 13, 2003
  2. Jeronimo Bertran
    Replies:
    6
    Views:
    605
    Jeronimo Bertran
    Dec 4, 2003
  3. John M
    Replies:
    1
    Views:
    1,239
    Kumar Reddi
    May 29, 2005
  4. Jeff User
    Replies:
    3
    Views:
    854
    Jeff User
    Dec 2, 2005
  5. Peter Mount
    Replies:
    4
    Views:
    975
    Peter Mount
    Jan 31, 2006
Loading...

Share This Page