Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Guys,
I need hints. I created two tables in the database, and each table has a column called number of quantity. I formed the number of quantity into text, so the user can enter the number of quantity. I did looping through the first table and showed the result of the whole table in a grid-view by clicking the button for looping. All i need to know is, how to insert or add the number of quantity, that the user enters via a button in another table, so i can find it checked in the table's record.

Thanks,

[edit]Spurious code block removed - OriginalGriff[/edit]
Posted
Updated 24-Mar-13 0:00am
v2

1 solution

If you have stored the value in your database table as a string, then this is quite complex.

Change your database: store numeric values as numbers, and strings values as strings. They are then a lot easier to work with, and the presentation layer (in your case the browser) is used to converting them for display.
 
Share this answer
 
Comments
Maciej Los 24-Mar-13 6:06am    
Short and to the point!
+5!
mohfarra7 24-Mar-13 8:27am    
Thanks for reply, maybe you misunderstood what i mean, or i did not explain clearly. I get what i want. When i order something with number of quantities i need for an item, i should loop through it and state if all items checked with number of quantities, clear the unselected then executing the sql command query of insert method to other table. I hope i did not waste your time or bother you.
Thanks
OriginalGriff 24-Mar-13 9:31am    
So where are the itmes you are looping through, and are you affecting them as well? ANd waht does "clear the unselected" mean?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900