IPostBackEventHandler

Discussion in 'ASP .Net Web Controls' started by Bernhard Wurm, Sep 26, 2005.

  1. Hello!

    I try to programm my own CustomControl.
    Therefore I myControl is inherit from WebControl.
    It contains a collection of Items, which inherit from HTMLGenericControl.

    Now my Item does a postback by
    parent.Page.ClientScript.GetPostBackEventReference(this, "")

    the postback is done, and at the page I can do: if (Page.IsPostBack)

    BUT:
    my Items also implement the IPostBackEventHandler, but I can't catch the
    event!
    So RaisePostBackEvent() isn't called.

    Does anyone know what is wrong? (ASP.NET 2.0)

    Thank you
    Bernhard Wurm
     
    Bernhard Wurm, Sep 26, 2005
    #1
    1. Advertisements

  2. Bernhard Wurm

    jjrdk Guest

    Does your LoadPostData return TRUE? Also make sure that the control in
    itself actually participates in the postback.

    jjrdk
     
    jjrdk, Sep 27, 2005
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.