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. Advertising

  2. Bernhard Wurm

    jjrdk Guest

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

    jjrdk


    "Bernhard Wurm" <> wrote in message
    news:...
    > 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
    >
     
    jjrdk, Sep 27, 2005
    #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. =?Utf-8?B?S2xvbSBEYXJr?=

    Table of dynamic buttons implemeting IPostBackEventHandler

    =?Utf-8?B?S2xvbSBEYXJr?=, Jun 17, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    685
    avnrao
    Jun 17, 2004
  2. Sam Martin
    Replies:
    4
    Views:
    7,681
    William F. Robertson, Jr.
    Sep 15, 2004
  3. Mike
    Replies:
    11
    Views:
    4,100
    =?Utf-8?B?aGFuIHpoaXlhbmc=?=
    Sep 22, 2005
  4. Mr Newbie
    Replies:
    1
    Views:
    3,609
    Mr Newbie
    Nov 7, 2005
  5. Louis Somers
    Replies:
    3
    Views:
    3,250
    RichardPetheram
    Oct 17, 2008
Loading...

Share This Page