How do I wire up a custom button (non Select, Edit, Delete) in a datagrid that is a template column?

Discussion in 'ASP .Net' started by AMT2K5, Mar 6, 2007.

  1. AMT2K5

    AMT2K5 Guest

    For example I have

    <asp:button OnClick="RentMovie_Click" id="rentMovie" Text="Rent it!"
    runat="server" CausesValidation="false" CommandArgument='<%#
    DataBinder.Eval(Container, "DataItem.MovieID") %>'
    CommandName="rentMovie">
    </asp:button>

    I need to pass DataItem.MovieID to a subroutine called RentMovie_Click
    but I am unsure on what the prototype for that subroutine should look
    like, as in what its arguments are and handler

    Appreciate any help.
     
    AMT2K5, Mar 6, 2007
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. moondaddy
    Replies:
    3
    Views:
    7,854
    moondaddy
    Apr 8, 2004
  2. Alex
    Replies:
    2
    Views:
    597
  3. Chris Newby
    Replies:
    1
    Views:
    624
    =?Utf-8?B?c2FyYQ==?=
    Feb 28, 2005
  4. jijis

    item template and edit delete button

    jijis, Mar 26, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    169
    jijis
    Mar 26, 2005
  5. Frank Kurka
    Replies:
    8
    Views:
    342
Loading...

Share This Page