From: Dan Bass on
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.


From: dotNetDave on
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]
www.dotNetTips.com
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.
>
>
>
 | 
Pages: 1
Prev: Logging Solution
Next: About details view