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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:20:10+00:00 2026-06-14T06:20:10+00:00

I need this asp:TableRow to show conditionally. <asp:TableRow> <asp:TableCell><asp:Label id=ExtraAmountType runat=server Width=182px></asp:Label></asp:TableCell> <asp:TableCell Width=10%

  • 0

I need this asp:TableRow to show conditionally.

<asp:TableRow>
    <asp:TableCell><asp:Label id="ExtraAmountType" runat="server" Width="182px"></asp:Label></asp:TableCell>
    <asp:TableCell Width="10%" HorizontalAlign="Right">$&nbsp;<asp:textbox id="MembershipDues" runat="server" Wrap="False" BackColor="#FFFF80" AutoPostBack="True" Width="31px" MaxLength="3" ontextchanged="MembershipDues_TextChanged"></asp:textbox></asp:TableCell>
</asp:TableRow>

How can I do this. I wrapped it in an

<asp:PlaceHolder ID="memberdues" runat="server"> 

tag but it complains:

Error 12 System.Web.UI.WebControls.TableRowCollection must have items of type ‘System.Web.UI.WebControls.TableRow’. ‘asp:PlaceHolder’ is of type ‘System.Web.UI.WebControls.PlaceHolder’.

I need this row to show conditionally.

I do this in Page_Load:

memberdues.Visible = false; 
if (DuesInfo.CredentialsAmount > 0)
{
    // do some other stuff to populate the variables in the placeholder then show it
    memberdues.Visible = true; 
}
  • 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-06-14T06:20:11+00:00Added an answer on June 14, 2026 at 6:20 am

    Give it an ID and set its runat to server then you can access it from code behind.

    <asp:TableRow runat="server" ID="rowExtraAmountType">
    

    Now it’s accessible from an event from behind:

    rowExtraAmountType.Visible = (conditional expression);
    

    Edit: Shown below with your question edits

    <asp:TableRow runat="server" ID="memberdues">
    

    Then the code behind:

    memberdues.Visible = (DuesInfo.CredentialsAmount > 0); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<asp:TextBox CssClass=txt ID=TextBox1 runat=server onkeyup=CountChars(this); Rows=20 Columns=35 TextMode=MultiLine Wrap=true> </asp:TextBox> I need to implement
i have a list: <asp:ListBox ID=lstProblems runat=server SelectionMode=Multiple></asp:ListBox> and i am populating it this
i have an asp,net textbox like this <asp:TextBox readonly=true ID=txtLastService runat=server></asp:TextBox> when i tried
I Need to make a webpage. asp.net this webpage recieve parameter by using Request.Querystring
I need confirmation of my approach for this, I'm using EF and ASP.NET MVC
I am trying to access website http://www.billing.mppkvvcl.org/wzltbill.asp . On this page I need to
I need to write a script that can navigate through this ASP page: http://fcms.concordia.ca/fcms/asc002_stud_all.aspx
In this asp.net gridview control, the checked property is always missing. I need to
I Have login page on my asp.net page and I need this page to
In this ASP.NET MVC 3 view, I need to control form submission completely via

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.