Ask a Question related to ASP.NET General, Design and Development.
-
Khan Imran #1
Re: checkboxlist control
Why don't you keep one of the checkbox selected on load.
--
Regards
Khan Imran
"buran" <buran@buran.com> wrote in message
news:#C9iNewPDHA.3020@TK2MSFTNGP10.phx.gbl...> Dear ASP.NET Users,
>
> How can I check whether at least one item is selected in checkboxlist
> control, what is the simplest way?
>
> Thanks in advance,
>
> Buran
>
>
Khan Imran Guest
-
how to put checkbox control by using checkboxlist within the repeater?
how to put checkbox control by using checkboxlist within the repeater? -
Extend CheckBoxList
I'd write a UserControl that contains the CheckBoxList and the Textbox.... "MoeJoe" <anonymous@discussions.microsoft.com> wrote in message... -
Custom Checkboxlist control
Hello, I have a checkbox list control, "check1" , on my page. After I do the databind, here is what the view source looks like. <table... -
CheckBoxList
When I put a CheckBoxList on a web form and then populate it, it grows longer. The behavior I wold like would be more like the Windows Forms... -
/!\ How to colorize selected checkbox in checkboxlist control ?
Dear UseNet readers, Does anyone have any idea on how to colorize selected checkbox in checkboxlist control ? I've quite a huge checkboxlist... -
Ignacio Martinez #2
Re: checkboxlist control
if "0" & CheckboxList1.value = "0" then
'not checked
end if
could it work?
"buran" <buran@buran.com> escribió en el mensaje
news:#C9iNewPDHA.3020@TK2MSFTNGP10.phx.gbl...> Dear ASP.NET Users,
>
> How can I check whether at least one item is selected in checkboxlist
> control, what is the simplest way?
>
> Thanks in advance,
>
> Buran
>
>
Ignacio Martinez Guest
-
Ignacio Martinez #3
Re: checkboxlist control
there's one way even more effective if you're not checking any of the items
when the page loads.
Dim Item as ListItem
Dim isChecked as Boolean = False
For Each Item in CheckboxList1.Items
if item.selected = true then
isChecked=True
Exit For
end if
Next
If isChecked=False then
'Not Checked
End if
"Ignacio Martinez" <imartinez@borealsys.com.ar> escribió en el mensaje
news:#JP#U4wPDHA.2852@tk2msftngp13.phx.gbl...> if "0" & CheckboxList1.value = "0" then
> 'not checked
> end if
>
> could it work?
>
> "buran" <buran@buran.com> escribió en el mensaje
> news:#C9iNewPDHA.3020@TK2MSFTNGP10.phx.gbl...>> > Dear ASP.NET Users,
> >
> > How can I check whether at least one item is selected in checkboxlist
> > control, what is the simplest way?
> >
> > Thanks in advance,
> >
> > Buran
> >
> >
>
Ignacio Martinez Guest



Reply With Quote

