how to fire a postback event

Discussion in 'ASP .Net Building Controls' started by flashk, Aug 8, 2003.

  1. flashk

    flashk Guest

    Hi, All

    I design a composite custom control, which has three dropdownlists in
    it. I find as long as one of the dropdownlist control's id is assigned
    using uniqueid property of my custom control then a postback event
    will be fired, but since my dropdownlist has javascript event which
    does some function and using dropdownlist ids to identify them, since
    uniqueid is generated dynamaically, it is difficult for my js function
    know the id, is there any other method to solve the problem, i tried
    create a hidden type input with id = uniqueid, but it seems postback
    event can't be fired... needs help thx a lot

    regards
    Kevin
    flashk, Aug 8, 2003
    #1
    1. Advertising

  2. Not much experience with custom controls but this should work. Call
    Page.RegisterRequiresPostBack(control) to request that your parent control
    is notified about the post data. You then need to implement
    IPostBackDataHandler on the control to recieve the postback data.

    hth, Matt

    "flashk" <> wrote in message
    news:...
    > Hi, All
    >
    > I design a composite custom control, which has three dropdownlists in
    > it. I find as long as one of the dropdownlist control's id is assigned
    > using uniqueid property of my custom control then a postback event
    > will be fired, but since my dropdownlist has javascript event which
    > does some function and using dropdownlist ids to identify them, since
    > uniqueid is generated dynamaically, it is difficult for my js function
    > know the id, is there any other method to solve the problem, i tried
    > create a hidden type input with id = uniqueid, but it seems postback
    > event can't be fired... needs help thx a lot
    >
    > regards
    > Kevin
    Matt Dockerty, Aug 12, 2003
    #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. Will

    fire an event without postback?

    Will, Aug 29, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    2,966
    Vidar Petursson
    Aug 29, 2003
  2. john
    Replies:
    3
    Views:
    9,240
  3. Marcel Balcarek
    Replies:
    1
    Views:
    5,773
    Ashish M Bhonkiya
    Apr 29, 2004
  4. John Kotuby
    Replies:
    2
    Views:
    685
    John Kotuby
    Apr 20, 2007
  5. Jean Erasmus

    LoadViewState does not fire on a postback event

    Jean Erasmus, Nov 25, 2003, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    220
    Jean Erasmus
    Nov 28, 2003
Loading...

Share This Page