Last post Aug 15, 2008 02:48 PM by sugan.v
Aug 15, 2008 02:01 PM|marchnw|LINK
I have approx 60 .aspx pages. Each page either has a radiobuttonlist, checkboxlist, textbox, or multiples of the preceding. My question is: Is SQLDataSource the correct way of writing to/reading from the database to
the checkbox or radio? The first time a user logs on it will have to create a new row in the database and insert the data. After the submit they should be able to go back and see what they have done and edit the answer. My connection to the SQL Database works,
because in the query desiger on a few of the pages I can get results.
Also, I can kind of get the page to read from the database. I have yes/no radio buttons with values of 1 and 2. If I manually put a value in the db, the webpage will show the radio button for whichever value I put in
and not the other. I've been reading for the past week and the only help I can seem to find is on gridviews and listviews, so any suggestions greatly appreciated. Thanks-
Aug 15, 2008 02:48 PM|sugan.v|LINK
Did you bind the data for radio buttons? My suggestion, rathan using radio buttons, use RadioButtonList and in your SQL database, assign parameter for "yes/no" fields. Then when you bind the database fields, assign as get the parameter value from RadioButtonList
I am not sure this is what you are looking for.