Forms Data Controls :: One Selectable RadioButton Inside DataList
Oct 20, 2010
I am trying to implement multiple choice questions within my web application. I have datalist within a datalist. First datalist contains questions, second datalist contains choice, only one choice should be selectable at a time. I am using radio button. Even though I have set radio button's GroupName property, I can't make them selectable one at a time.
I have a radiobutton inside an itemTemplate in datalist , and i'm binding this radiobutton dynamically from database, the problem is that all the radiobuttons generated are selectable at the same time which is wrong. (Multiple radiobuttons selcted at the same time)
i have a website with a radiobutton inside a gridview, i set the groupname in the gridview but when i run the table, the radiobutton did not became exclusive or i can checked = true on all radiobutton. this is my code:
I have been searching the net for quite a while and can't find an example of how to put a radiobutton or radiolist inside a formview. I have an objectdatasource that goes back to a table. One field in the table is Hydro -- which is an int field. There are three valid choices:
value Text 0 None 1 15 Amp Service 2 30 Amp Service
When I set my Formview to the objectdatasource my Hyrdo binding looks like this:
How would I change the above so that it would replace the TextBox with either a radiolist or 3 radiobuttons (I am ok with whichever is easier) so that it would look like this
Hydro: o None o 15 Amp o 30 Amp
Also, in the case of the update mode that the correct item is selected based on the value of 0, 1, 2 being read from the datatable
I have one gridview with page size 5. I have paging inside. I have radio buttuns on the gridview. If i select row in 1 first page indexwith radio button and back to second page index and when i come to first page index, my radio button selection has been lost.
I am trying to follow this tutorial(out of date) but the simplest I can find and understand to put a repeater or datagrid inside of a datalist.http://www.tutorialized.com/view/tutorial/DataGrid-inside-a-DataGrid/13926I get hung up in the cs part. Can I just add a sql datasource to the aspx page then call it from the cs like this somehow...my
I try to make button inside datalist to be invisble based on a column value from database. I am able to read the column data but i cant find solution to make the button invisible. Below is my code behind:-