Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hello
I have created a ASP.NET web application, I have created 3 pages that require user input. These forms have labels, check boxes, text boxes, drop down list etc..
I am looking the user to fill out these forms then enter their first and last name at the bottom of each page and then click save to save the entire data entered. (labels, text boxes and button)
I then want to display these pages in a grid view on another page I have created, so the user can modify these if needed.
What is the best way to do this???
I initially wanted to save the entire web form to a ms database I created, then load this data into grid view. I was able to save the text fields but not the check boxes and drop down lists. Also some of the data on the page is fixed in the code, it doesn't require any user input.
Any help on this would be appreciated thanks.
Posted
Updated 7-Apr-14 3:09am
v2
Comments
Suk@nta 7-Apr-14 9:23am    
it will be better if you put your save function code

 
Share this answer
 
Comments
Member 10729814 7-Apr-14 9:30am    
I have googled it, they are both for sql its ms access OLE DB
If you want to save the checkbox value then you have to set the datatype of column to bit in database table . bcz checkbox value is boolean type

and in database table bit type as boolean.
for dropdown list nvarchar type is ok and the value should be dropdown1.text

and for checkbox ..checkbox1.Value

let me know it help you or not
 
Share this answer
 
v2
Comments
Member 10729814 7-Apr-14 9:27am    
what would it be for label?
Suk@nta 7-Apr-14 9:38am    
just label1.text
and table nvarchar type
Schatak 7-Apr-14 9:29am    
Try links in Solution one, you will get the idea

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