views:

65

answers:

3

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
can you direct me to an example of how to bind input type radio group?
rs
@Rahuls - answer updated with links.
Oded
I'm not using radio button list but I'm using <input type="radio" />
rs
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
thnx but i solved it
rs
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
A: 

i used selected = '<% Bind("xyz") %>'

rs