Inserting data

Discussion in 'ASP .Net' started by Igor, Jun 14, 2008.

  1. Igor

    Igor Guest

    Hello

    Can anyone help me with this. I have two textboxes on a page (Name and
    Surname) and a button "Save". I also have a stored procedure (tbh_SaveUsers)
    that takes two parameters (@Name and @Surname). How can I bind the click
    event of the button so the text from both text boxes will be passed over to
    the stored procedure. I was using inline sql commands to do that and I
    haven't got a clue how to do that with a stored procedure.

    Kind regards
    Igor, Jun 14, 2008
    #1
    1. Advertising

  2. Maybe there's another trick to this that I don't know about. But for me, I'd
    simply add a handler for the button and write the code to call the stored
    procedure with the values from text boxes.

    --
    Jonathan Wood
    SoftCircuits Programming
    http://www.softcircuits.com

    "Igor" <> wrote in message
    news:...
    > Hello
    >
    > Can anyone help me with this. I have two textboxes on a page (Name and
    > Surname) and a button "Save". I also have a stored procedure
    > (tbh_SaveUsers) that takes two parameters (@Name and @Surname). How can I
    > bind the click event of the button so the text from both text boxes will
    > be passed over to the stored procedure. I was using inline sql commands to
    > do that and I haven't got a clue how to do that with a stored procedure.
    >
    > Kind regards
    Jonathan Wood, Jun 14, 2008
    #2
    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. Rico Alexander
    Replies:
    1
    Views:
    343
    zPaul
    Oct 23, 2003
  2. Bhavesh
    Replies:
    0
    Views:
    408
    Bhavesh
    Jul 16, 2007
  3. Bhavesh
    Replies:
    5
    Views:
    604
    Bhavesh
    Jul 18, 2007
  4. Bhavesh
    Replies:
    1
    Views:
    437
    Bhavesh
    Jul 17, 2007
  5. Renie83
    Replies:
    1
    Views:
    160
    Kiran Math
    Jul 10, 2003
Loading...

Share This Page