|
| Hi teddy,
Try to analyze Duwamish 7.0 application boundled with VS .NET 2003.
Take a closer look at dailypickmodule.ascx server control and <ItemTemplate>
element
"teddy" <teddy@ee.columbia.edu> wrote in message
news:c7a9cs$e67$1@newsmaster.cc.columbia.edu...
> Hi,
>
> I am trying to create a bookstore application using c#. I can display
> the books (obtained from sql server) on a table. At the end of each
> row, I would like to add "add to cart" button. Therefore, I use
>
> Button bt_add = new Button();
> bt_add.Text = "Add to cart";
>
> and put it in each table row. The Buttons display fine on the WebForm.
> However, I don't know how to add the Button_Click function for each of
> the Button I created since I don't know the total number of books in
> advance. Can anyone help me get "add to cart" button to work?
>
> Note: I try clicking on each Button, the WebForm page loads back to its
> original stage (Page_Load function) and my search result is gone. :(
>
> Thanks,
>
|
|