Showing posts with label radio. Show all posts
Showing posts with label radio. Show all posts

Thursday, March 29, 2012

Set CheckBox or Radio in repeater with if statement

Hi,
Attempting to display a questions list in my aspx page with the help of a
repeater.
This repeater displays each question (Label and picture) and each answer in
a nested repeater.
My problem is that each question can have ONE good answer or SEVERAL.
If the question has just one good answer, I want my answers displayed with
radio buttons.
In the other case, with checkbox.
is It Possible ?
Thks for help.Yes, but you'll most likely need to implement the logic in the ItemDataBound
event. This will let you define a placeholder in the itemTemplate which you
can then fill and dynamically create the checkbox/radiolist. You can find
out more at: http://www.openmymind.net/databinding/index.html
karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Mick" <saulot@.libertysurf.fr> wrote in message
news:41da537a$0$21436$636a15ce@.news.free.fr...
> Hi,
> Attempting to display a questions list in my aspx page with the help of a
> repeater.
> This repeater displays each question (Label and picture) and each answer
in
> a nested repeater.
> My problem is that each question can have ONE good answer or SEVERAL.
> If the question has just one good answer, I want my answers displayed with
> radio buttons.
> In the other case, with checkbox.
> is It Possible ?
> Thks for help.
>
>

Set CheckBox or Radio in repeater with if statement

Hi,
Attempting to display a questions list in my aspx page with the help of a
repeater.
This repeater displays each question (Label and picture) and each answer in
a nested repeater.

My problem is that each question can have ONE good answer or SEVERAL.
If the question has just one good answer, I want my answers displayed with
radio buttons.
In the other case, with checkbox.

is It Possible ?

Thks for help.Yes, but you'll most likely need to implement the logic in the ItemDataBound
event. This will let you define a placeholder in the itemTemplate which you
can then fill and dynamically create the checkbox/radiolist. You can find
out more at: http://www.openmymind.net/databinding/index.html

karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"Mick" <saulot@.libertysurf.fr> wrote in message
news:41da537a$0$21436$636a15ce@.news.free.fr...
> Hi,
> Attempting to display a questions list in my aspx page with the help of a
> repeater.
> This repeater displays each question (Label and picture) and each answer
in
> a nested repeater.
> My problem is that each question can have ONE good answer or SEVERAL.
> If the question has just one good answer, I want my answers displayed with
> radio buttons.
> In the other case, with checkbox.
> is It Possible ?
> Thks for help.

Tuesday, March 13, 2012

set ReadOnly to radio button and check box

How can I set ReadOnly to radio button and check box ??

Million thanks.Enabled Property.

Av.
"Grey" <ericyum@.i-cable.com> wrote in message news:eMC79JuREHA.2704@.TK2MSFTNGP10.phx.gbl...
How can I set ReadOnly to radio button and check box ??

Million thanks.

set ReadOnly to radio button and check box

How can I set ReadOnly to radio button and check box '
Million thanks.Enabled Property.
Av.
"Grey" <ericyum@.i-cable.com> wrote in message news:eMC79JuREHA.2704@.TK2MSFTN
GP10.phx.gbl...
How can I set ReadOnly to radio button and check box '
Million thanks.