PDA

View Full Version : Collecting Form Data


vishi1480
04-16-04, 06:05 PM
Hi!
I am very new to asp.net
My problem scenario is something like this:
On a page I display the details of a particular item (which comes from a DataSet). I want to give the user an option of the quantity of the item he/she would want to buy. The user should be able to enter the quantity and on clicking 'add to cart' button, the item details along with the entered quantity has to be written in a table in the NorthWind access database.
I understand that the quantity has to be entered in a text box in a form, but how do I save it in a variable, so as to be able to write it in the database.
I would appreciate any inputs!

wessamzeidan
04-21-04, 04:34 AM
I'm not sure if I understood exactly what you want, but here is how you can declare avariable

Dim qty as Interger=CInt(textbox1.Text)

vishi1480
04-21-04, 02:45 PM
Thanks for your help!