0

I'm printing to the screen lots of entries from my database. I'd like each entry to have it's own button, so I can add that specific entry to my cart (saved in Session[]).

How can I do it? I'd like to have something like this: alt text

Thank you very much!! :)

1
  • Did you get anywhere with this? Do you have any code? There are a few pieces to this puzzle. Commented Mar 29, 2010 at 19:37

3 Answers 3

1

You can easily achieve that with a repeater or ListView, put a button in the template and give the button an ID of the backend database entry. When the button is clicked, it fires an event (or if you give a command it fires an ItemCommand event) that you can use to do whatever processing you need...

HTH.

Sign up to request clarification or add additional context in comments.

Comments

1

Have you had a look at the Repeater Control?

Comments

0

As Brian said, you can add the buttons by using the repeater control. As simple as that.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.