LoadPostData method called twice

Discussion in 'ASP .Net Building Controls' started by Nidhee, Aug 2, 2004.

  1. Nidhee

    Nidhee Guest

    Hi Everyone,

    I am building an ASP.NET server control. It implements the
    IPostBackDataHandler interface. My code contains implementation for
    both LoadPostData and RaisePostDataChangedEvent methods. In the
    RaisePostDataChangedEvent, I do database updation, insert/update. The
    problem is that the LoadPostData method is called twice, once before
    the Page Load and once after it. As a result, the
    RaisePostDataChangedEvent is also called twice resulting in multiple
    insertions in the database. Can anyone suggest a solution to this
    problem?

    Regards,
    Nidhee
     
    Nidhee, Aug 2, 2004
    #1
    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. Sam
    Replies:
    2
    Views:
    4,504
  2. TC
    Replies:
    3
    Views:
    10,599
    Lowell Heddings
    Dec 8, 2004
  3. TarTar
    Replies:
    0
    Views:
    539
    TarTar
    Aug 17, 2007
  4. TarTar
    Replies:
    4
    Views:
    797
    TarTar
    Aug 24, 2007
  5. dave
    Replies:
    0
    Views:
    188
Loading...

Share This Page