I have a list of input type radio buttons in formview (edit mode) and i want to bind data from datasource that is assigned to formview. Can i bind html radio buttons using sql datasource?
A:
All controls can be bound with a SQL datasource, as they all inherit from Control
where it defined.
Here are a couple of articles describing how to bind RadioButtonList
.
Oded
2010-02-24 20:36:58
can you direct me to an example of how to bind input type radio group?
rs
2010-02-24 20:48:48
@Rahuls - answer updated with links.
Oded
2010-02-24 20:58:31
I'm not using radio button list but I'm using <input type="radio" />
rs
2010-02-24 21:06:49
You can't databind a control that is not server side (i.e. with a `runat="server"` attribute). You should be using serverside controls, such as RadioButtonList for this.
Oded
2010-02-24 21:09:47
thnx but i solved it
rs
2010-02-24 22:24:40
A:
i was looking to bind input radio type you can do that using checked='<# Bind("Selected") >' and using runat="server" Note: my rdb list is in data controls
rs
2010-02-24 22:24:19