Keeping activex out of postback?

Discussion in 'ASP .Net' started by John Scalco, Jun 9, 2004.

  1. John Scalco

    John Scalco Guest

    Hi,
    I have a form which contains an activex control (showing an image) and some
    other web server controls.
    If i pick one of the web server controls, for example, a button and click
    it, then a postback occurs.

    This results in the activex control window being cleared of the image which
    was in there.
    The problem is that my user may have made some changes to the image, say
    cropped it, and those changes get wiped on the postback.

    Is there a way to avoid this?

    thanks,
    sincerely,
    john scalco
     
    John Scalco, Jun 9, 2004
    #1
    1. Advertisements

  2. John Scalco

    bruce barker Guest

    any postback will destroy and recreate the active/x control. you could
    rewrite the control to cache the image on postback, and reload on the
    postback render. if you can not change the control, put all the sever
    control in an iframe, so the main frame never postbacks.

    -- bruce (sqlwork.com)


    "John Scalco" <> wrote in message
    news:utJz#...
    >
    > Hi,
    > I have a form which contains an activex control (showing an image) and

    some
    > other web server controls.
    > If i pick one of the web server controls, for example, a button and click
    > it, then a postback occurs.
    >
    > This results in the activex control window being cleared of the image

    which
    > was in there.
    > The problem is that my user may have made some changes to the image, say
    > cropped it, and those changes get wiped on the postback.
    >
    > Is there a way to avoid this?
    >
    > thanks,
    > sincerely,
    > john scalco
    >
    >
     
    bruce barker, Jun 9, 2004
    #2
    1. Advertisements

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. Darrel
    Replies:
    5
    Views:
    701
    Darrel
    Oct 31, 2004
  2. Rodusa
    Replies:
    2
    Views:
    6,613
    Rodusa
    Feb 15, 2005
  3. Tim
    Replies:
    3
    Views:
    978
    Robbe Morris [C# MVP]
    Sep 22, 2005
  4. Support
    Replies:
    2
    Views:
    508
    Support
    Oct 12, 2005
  5. Replies:
    0
    Views:
    1,180
  6. vml
    Replies:
    0
    Views:
    1,313
  7. Andy B
    Replies:
    1
    Views:
    396
    gerry
    May 23, 2008
  8. Allen K

    Keeping DataGrid Columns through Postback

    Allen K, Apr 6, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    3
    Views:
    203
    Guest
    Apr 19, 2004
Loading...