Which way to use

Is it fine that we have a checkbox for the repeater list, thus we can do a "tick" for the relevant records? Or better we should use Gridview/listview for doing this?
LVL 12
HuaMin ChenProblem resolverAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If a simple control can do that, what's point to use a complex control using more space, resource, code and even database access?

KISS - Keep it simple, stupid. :-)
Pratima PharandeCommented:
you can use repeater list , no issues

also please find the attached image to undertans ahat all functionalities all this contorls support
will help you to select correct one
HuaMin ChenProblem resolverAuthor Commented:
Which is better for this, among repeater, Gridview, Listview and etc?
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.


Any concerns for you to choose the others?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Pratima PharandeCommented:

As it is providing other functionalities also
HuaMin ChenProblem resolverAuthor Commented:
Thanks all.
I think it is a problem to have a checkbox within a repeater list as it is only a list of text items. If it is really fine to use a repeater, can you demonstrate it?
FYI - not sure if you ever read this discussion.
HuaMin ChenProblem resolverAuthor Commented:
Thanks. I think there is no way to use Repeater for this case right? If I assign a recordset to a repeater, how about the existing Checkbox within the repeater? Will there be no problem with it?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I am not a .NET dev but reading into that answer, it is calling for the rendered html to display the checkbox in a repeater and later to be collected to a hidden field you can capture.  I have created the front end sample using a text box instead of hidden for demonstration.
<!DOCTYPE html>
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    $(function () {
    // listen for check/uncheck
    $('input.use_bold').change(function () {
        var collected_data_bold = [];
        $('input.use_bold').each(function () {
            if ($(this).is(':checked')) {
    // listen for check/uncheck
    $('input.use_red').change(function () {
        var collected_data_red = [];
        $('input.use_red').each(function () {
            if ($(this).is(':checked')) {

  <meta charset="utf-8">
  <title>JS Bin</title>
  <table id="mydata">
    <tr><td><input id="x1" name="x1" value="x1" type="checkbox" class="use_bold">Use Bold</td><td><input id="y1" name="y1" value="y1" type="checkbox" class="use_red">Use Red</td></tr> 
    <tr><td><input id="x2" name="x2" value="x2" type="checkbox" class="use_bold">Use Bold</td><td><input id="y2" name="y2" value="y2" type="checkbox" class="use_red">Use Red</td></tr>
    <tr><td><input id="x3" name="x3" value="x3" type="checkbox" class="use_bold">Use Bold</td><td><input id="y3" name="y3" value="y3" type="checkbox" class="use_red">Use Red</td></td></tr>


  Bold<input name="collected_data_bold" type="text"><br>Red
  <input name="collected_data_red" type="text">

Open in new window

You can parse the data however you want to in the form post.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.