AJAX User Control Event's not firing...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dan Bass

    #1

    AJAX User Control Event's not firing...

    I'm developing an Ajax keypad (C# / ASP.Net 3.5 / VS 2008) using the
    updatepanel so that a full visible postback doesn't occur with each button
    press.

    I've decided to try and wrap the functionality into a user control,
    providing events for when ok and cancel is pressed so that the caller (in
    this case a page with the control on it) can then query for the keypad's
    final value. If I remove the UpdatePanel, the events that the caller
    subscribes to are fired and handled correctly, but with the Ajax bit
    enabled, the events don't appear to fire.

    I'm assuming this is because of the something which exists in the void of my
    knowledge regarding Ajax, and the server side interactions that relate to
    it.

    Any help on how to get this working would be appreciated.

    Thanks.
    Daniel.


  • =?Utf-8?B?ZG90TmV0RGF2ZQ==?=

    #2
    RE: AJAX User Control Event's not firing...

    You need to setup a trigger in your update panel to so it will update with a
    button is pressed in your user control.

    David

    =============== =============== ========
    David McCarter [Microsoft MVP]
    Improving Code Quality... One Developer at a Time

    David McCarter''''s .NET Coding Standards available at:
    http://www.cafepress.com/geekmusicart.1654787045


    "Dan Bass" wrote:
    I'm developing an Ajax keypad (C# / ASP.Net 3.5 / VS 2008) using the
    updatepanel so that a full visible postback doesn't occur with each button
    press.
    >
    I've decided to try and wrap the functionality into a user control,
    providing events for when ok and cancel is pressed so that the caller (in
    this case a page with the control on it) can then query for the keypad's
    final value. If I remove the UpdatePanel, the events that the caller
    subscribes to are fired and handled correctly, but with the Ajax bit
    enabled, the events don't appear to fire.
    >
    I'm assuming this is because of the something which exists in the void of my
    knowledge regarding Ajax, and the server side interactions that relate to
    it.
    >
    Any help on how to get this working would be appreciated.
    >
    Thanks.
    Daniel.
    >
    >
    >

    Comment

    Working...