Command Button Calling Function

Discussion in 'ASP .Net Web Controls' started by TCORDON, Jan 24, 2005.

  1. TCORDON

    TCORDON Guest

    I have a DataList with a bunch of items (eg. Shoppiong Cart) each Item has a
    Remove button, in the code Behind page I have a Sub called Remove Item which
    calls a Function like this:

    Public Shared Function RemoveItem (t_ItemIndex as Integer) as String

    This function removes the item from the DB.

    My question is, first how do I tie up the command button for each item so
    that when it loads it knows that it represents Item "X" this being the Id of
    the item, and second, how do I make him call that function?

    TIA!
     
    TCORDON, Jan 24, 2005
    #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. Ryan Ternier
    Replies:
    4
    Views:
    4,041
    Cowboy \(Gregory A. Beamer\) [MVP]
    Jul 29, 2004
  2. ScooterMX
    Replies:
    3
    Views:
    2,255
    Ryan Trudelle-Schwarz
    Feb 1, 2005
  3. Andreas Lagemann
    Replies:
    8
    Views:
    531
    Mike Wahler
    Jan 10, 2005
  4. tiwy
    Replies:
    0
    Views:
    461
  5. Replies:
    0
    Views:
    508
Loading...

Share This Page