__doPostBack manual call

Discussion in 'ASP .Net' started by =?Utf-8?B?QUpQ?=, Aug 20, 2004.

  1. I have a child window which does the following after a button is pressed:

    Response.Write("<script>window.opener.__doPostBack('','');</script>");

    but I get the following uncaught exception upon doing this:

    "An error has occurred because a control with auto-generated id '_ctl139'
    could not be located to raise a postback event. To avoid this error,
    explicitly set the ID property of controls that raise postback events. "

    I believe this is happening because I have dynamically created and added
    controls in that parent window, and they are created each time a postback is
    done.

    But I'm not passing a sender when calling the javascript __doPostBack, so
    why is it looking for that __ctl139 (one of the dynamically created controls?)

    I'd appreciate any help you can offer.


    Thanks,

    drew
    =?Utf-8?B?QUpQ?=, Aug 20, 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. Jon Davis
    Replies:
    1
    Views:
    397
    Jon Davis
    Jan 27, 2004
  2. Jon Davis
    Replies:
    3
    Views:
    477
    Jon Davis
    Jan 27, 2004
  3. SteveSu
    Replies:
    2
    Views:
    17,036
    SteveSu
    Nov 8, 2005
  4. Nathan Sokalski
    Replies:
    1
    Views:
    888
    Gregory A. Beamer
    Jan 11, 2010
  5. Nathan Sokalski
    Replies:
    1
    Views:
    813
    Gregory A. Beamer
    Jan 11, 2010
Loading...

Share This Page