Let dynamic button generate a postback event to another control

  • Thread starter Achim Domma (SyynX Solutions GmbH)
  • Start date
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top