A
Achim Domma (SyynX Solutions GmbH)
Hi,
in a repeater control I can create a postback link like this:
<a href=<%# DataBinder.Eval(Container.DataItem, "EditLink") %>>[edit]</a>
The EditLink property of the data item uses
Page.GetPostBackClientHyperlink of the parent control to create the
Javascript call. My parent control implements the IPostBackEventHandler
interface and processes the event.
But if I don't want to use links but rather buttons, how can I do that?
Is it possible to create a button which executes a postback, but sends
some data to another control, which can be captured via
IPostBackEventHandler?
My idea is to create dynamic buttons which don't have to be recreated in
postback handling to process the events.
regards,
Achim
in a repeater control I can create a postback link like this:
<a href=<%# DataBinder.Eval(Container.DataItem, "EditLink") %>>[edit]</a>
The EditLink property of the data item uses
Page.GetPostBackClientHyperlink of the parent control to create the
Javascript call. My parent control implements the IPostBackEventHandler
interface and processes the event.
But if I don't want to use links but rather buttons, how can I do that?
Is it possible to create a button which executes a postback, but sends
some data to another control, which can be captured via
IPostBackEventHandler?
My idea is to create dynamic buttons which don't have to be recreated in
postback handling to process the events.
regards,
Achim