Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 131827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:10:00+00:00 2026-05-11T06:10:00+00:00

say we have simple asp.net repeater, in a row we have one checkbox, one

  • 0

say we have simple asp.net repeater, in a row we have one checkbox, one label (database-id of the record) and not visible (used for postback) and one text (in a tabelcell)

now i want to make it like in windows, if you click on the text, the checkbox should be selected or deselected.

has somebody a link or solution for this, maybe already with jQuery?

Edit: as i said, it is a asp.repeater. and the table is for layout, so using the checkbox.text property is not designable (e.g. line wrap) the ids of the checkbox and text are dynamically added/changed on rendering of the repeater. therefore the label solution does also not really work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T06:10:00+00:00Added an answer on May 11, 2026 at 6:10 am

    assume that you wont’t need jQuery and the table-construct

    <asp:Repeater runat='server'>     <ItemTemplate>         <asp:CheckBox runat='server' Text='your text' />     </ItemTemplate> </asp:Repeater> 

    this renders basically the solution provided by Ricardo Vega whatever you get in the property text of the checkbox is clickable, and checks/unchecks the checkbox … therefor you should use <%# Eval(‘…’) %> you can skin (via css) the margin of the label

    Edit:

    After thinking about this once again, there is another solution:

    <asp:Repeater runat='server'>     <HeaderTemplate>         <table>     </HeaderTemplate>     <ItemTemplate>         <tr>             <td><asp:Checkbox runat='server' ID='checkbox' /></td>             <td><asp:Label runat='server' AssociatedControlID='checkbox'>Your text</asp:Label></td>         </tr>     </ItemTemplate>     <FooterTemplate>         </table>     </FooterTemplate> </asp:Repeater> 

    Notes: You can use the Text-attribute of the asp:Label-Element either!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a simple ASP.NET MVC blog application and I want to
ASP.NET MVC 2.0: Simple Model Binding not working/binding as it should i have a
Let's say I have a simple ASP MVC3 list controller, with an add method,
Say I have a simple client/server scenario with one method: // client code $client
Let's say I have a dataset in an ASP.NET website (.NET 3.5) with 5
I have a question about viewstate and custom controls in asp.net. Say I have
Say you have something like an ASP.NET ASP:DetailsView to show and edit a single
I'm using LinqToSql classes in an ASP.NET website and let's say I have an
I have a simple ASP.NET 4 site. I am using Forms Authentication. I have
This really should be so very simple... I have an asp.net master page which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.