Home All Groups Group Topic Archive Search About

CheckBox inside a Repeater?



Author
10 Mar 2006 8:23 PM
HockeyFan
I'm still learning .Net and have an ASP.Net app that I'm working on.
On this particular page, I need to put a bunch of checkboxes on the side of
the page, and the text for each is derived from the database.  So I can't
just hardcode the checkboxes.  I'll have any number of them, and possibly
even 0.
I am told that you use a Repeater control for this, but beyond that, am not
sure what to do.  Can someone show me?

Author
10 Mar 2006 8:39 PM
Bob Barrows [MVP]
HockeyFan wrote:
> I'm still learning .Net and have an ASP.Net app that I'm working on.

There was no way for you to know it, but this is a classic asp newsgroup.
While you may be lucky enough to find a dotnet-savvy person  here who can
answer your question, you can eliminate the luck factor by posting your
question to a newsgroup where the dotnet-savvy people hang out. I suggest
microsoft.public.dotnet.framework.aspnet.

> On this particular page, I need to put a bunch of checkboxes on the
> side of the page, and the text for each is derived from the database.
> So I can't just hardcode the checkboxes.  I'll have any number of
> them, and possibly even 0.
> I am told that you use a Repeater control for this, but beyond that,
> am not sure what to do.  Can someone show me?

Are you sure you don't want a CheckBoxList? That is a control that can be
bound to a data source ...

HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.

AddThis Social Bookmark Button