lamy
Regular
been searching but i still couldnt find any samples for adding a radiobutton control in a table control, anyone?
Cags said:I don't know anything about asp development but I just thought I'd asked what exactly a .Value property would entail for a Checkbox? Certainly in windows form development a Checkbox has a .Checked value, could it be that this is what your looking for, or have I got the wrong end of the stick?
i did underlined the word HTML, i wasnt referring to controls when i said it has those properties, anyway those controls are just some pre-rendered html objects limited to whatever.bri189a said:There is no value property, only checked.
row = New TableRow
col = New TableCell
radio = New RadioButton
with radio
.GroupName = "myRadioButton"
.ID = "myValue"
.Text = "myDescription"
end with
col.Controls.Add(radio)
row.Cells.Add(col)
myTable.Rows.Add(row)
radio = New RadioButtonList
With radio
.ID = "myRadioButton"
.Items.Add(New ListItem("myDescription", "myValue"))
End With
<table>
<tr>
<td colspan="2">
Something goes here like category or brief description
</td>
</tr>
<tr>
<td>
</td>
<td>
<input type="radio" name="myRadioButton" value="myValue"> myDescription
</td>
</tr>
..
</table>