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

  • Home
  • SEARCH
  • 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 438655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:41:59+00:00 2026-05-12T20:41:59+00:00

I have to change td content dynamically that depends on checkbox. If checkbox isnot

  • 0

I have to change td content dynamically that depends on checkbox. If checkbox isnot checked td will not take an extra style but if checked my text must take such a style:

b style="font-family:Tahoma;font-size:8pt;color:#0f0000;font-weight:normal;">My Text</b

Mycode is like that:

asp:DataList ID="Inside" runat="server" RepeatColumns="4"

ItemTemplate

  <asp:HiddenField ID="FeaID2" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "FeatureID")%>' >

    <td class="checkbox_td"><input disabled="disabled" type="checkbox" <%# int.Parse(DataBinder.Eval(Container.DataItem, "exist").ToString()) > 0 ? "checked" : "" %> /></td>

    <td class="text_td">!!!HERE IS MY PROBLEM!!!</td>

/ItemTemplate

/asp:DataList

I use C#, So, How do i give extra style to td content dynamically that i call (HERE IS MY PROBLEM) that depends on checkbox below?

  • 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. Editorial Team
    Editorial Team
    2026-05-12T20:41:59+00:00Added an answer on May 12, 2026 at 8:41 pm

    Add another selector to you CSS:-

    td.text_td_checked { font-family:Tahoma;font-size:8pt;color:#0f0000;font-weight:normal; }
    

    Make sure it comes after the text_td selector in your CSS. In your TD :-

    <td class="text_td <%# int.Parse(DataBinder.Eval(Container.DataItem, "exist").ToString()) > 0 ? "text_td_checked" : "" %>">!!!Problem Solved!!!</td>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a file, which change it content in a short time. But I'd
I have a series of select dropboxes setup, with content that dynamically updates depending
I need a way to display my content, but I'm not sure that a
I don't know how to describe this, but I have a website that dynamically
I have dynamic content that will grow and shrink in height that needs to
I have a page that allows users to dynamically change the loaded theme (stylesheet).
I have images (PNG) that are generated dynamically and will be embedded in websites
Are there any possibilities to dynamically change the static content? I have data in
I have a texbox and I want to change it's content every second in
I have a menu that changes and I want to show content in the

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.