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 6042101
In Process

The Archive Base Latest Questions

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

<td nowrap valign=top> <input class=formsubmit id=btnGo type=button value=Show Description style = <%# If (DataBinder.Eval(Container,

  • 0
<td nowrap valign="top">
<input class="formsubmit" id="btnGo" type="button" value="Show Description" 
style = "<%# If (DataBinder.Eval(Container, "DataItem.Exclamation").ToString() == "1")
then Response.Write("color:red") 
Else Response.Write("color:black") EndIf%>" 
OnClick="btnShowDescription('<%#DataBinder.Eval(Container, "DataItem.ListingDescription")%>');" />
</td>
                        `

This is the code for a cell on my table. I’m trying to get it to work but there’s a compiler issue saying that I’m missing a closed parentheses which I’m not. (hopefully). Can anyone see what the error could be? I thought I did the if/else logic right. Basically I’m trying to set the font color of a button based on what the value of a certain item in a database.

  • 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-23T06:45:11+00:00Added an answer on May 23, 2026 at 6:45 am

    I think it is because the style=" " is choking on the first double quote?

    style = “<%# If
    (DataBinder.Eval(Container,
    “<–right here DataItem.Exclamation”).ToString() ==
    “1”) then Response.Write(“color:red”)
    Else Response.Write(“color:black”)
    EndIf%>”

    Perhaps you need to escape one or more of the quotes?

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

Sidebar

Related Questions

I'm using Zend_Form to output a set group of checkboxes: <label style=white-space: nowrap;><input type=checkbox
<tr>$ <td nowrap valign=top class=table_1row><a name=d071301 id=d071301></a>13-Jul-2011</td>$ i would like to match tr>$ grep
<tr>$ <td nowrap valign=top class=table_1row><a name=d071301 id=d071301></a>13-Jul-2011</td>$ i would like to match tr>$ <td
I have a bunch of rows in a form like this <tr> <td nowrap><input
Here is my problem HTML: <table style=width:100%> <tr> <td style=width:100%;overflow:hidden> <div style=overflow:hidden;white-space:nowrap;text-overflow:ellipsis;>long long long
This is the code of my form <form method=post style=margin-left:15px;margin-top:6px; onsubmit=return map_Email_Validation();> <table> <tr>
I have a Person class with a BornDate property in my model defined as
How can I say in jQuery - Sum the value of all checkboxes within
Is it possible to line up the Register button to right align it w/in
This is what I tried: function(nowrap) { var cell = $(`'<td>'`); //cell.wrap = wrap

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.