Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Inserting data (http://www.velocityreviews.com/forums/t620187-inserting-data.html)

Igor 06-14-2008 10:35 AM

Inserting data
 
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 06-14-2008 03:15 PM

Re: Inserting data
 
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" <igorm@live.com> wrote in message
news:7700F283-0642-4E79-A93A-80AE9E89F653@microsoft.com...
> 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




All times are GMT. The time now is 08:35 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57