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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:34:16+00:00 2026-06-05T22:34:16+00:00

In my PrinterPackage. aspx file i have the following ‘User Control’ : <%@ Register

  • 0

In my PrinterPackage.aspx file i have the following ‘User Control’:

<%@ Register Src="~/ProvisionControls/DeferredTaxRollforwardControl.ascx" TagPrefix="uc9" TagName="DeferredTaxesRollforwardControl" %> 
   ...
   ...
 <div>
    <uc9:DeferredTaxesRollforwardControl ID="DeferredTaxesRollforwardControl1" runat="server" />
 </div>

which calls the control file ‘DeferredTaxRollforwardControl.ascx‘ that contains my table defined as follows:

<table style="width: 4600px; border-spacing:0px;" border="0" frame="hsides" cellpadding="2" cellspacing="1">

<tr id = "tblTempDiff"> //want to import this


<td style="width:7.6%;" width="2px;" class="paintYellowTotalLeftBold">
    Grand Total Current
</td>
<td style="width:2.8%;" width="2px;" class="paintYellowTotalBold">
    <asp:Label ID="lblGrandTotalUnadjustedBeginningBalance" runat="server" Text=""></asp:Label>
</td>
... and more <td>

I am trying to display the table and also hide some of the columns using the following code in my PrinterPackage.aspx.cs file :

 TableRow row = DeferredTaxesRollforwardControl1.FindControl("tblTempDiff") as TableRow;
        row.Cells[0].Visible = true;
        row.Cells[1].Visible = true;
        row.Cells[2].Visible = true;
        row.Cells[3].Visible = true;
        row.Cells[4].Visible = true;
        row.Cells[5].Visible = true;
        row.Cells[6].Visible = true;
        row.Cells[7].Visible = true;
        row.Cells[8].Visible = true;
        row.Cells[9].Visible = false;
        row.Cells[10].Visible = false;
        row.Cells[11].Visible = false;
        row.Cells[12].Visible = false;

But, this doesn’t seem to pick up the table row tblTempDiff and gives me a null value instead. How can i import the data from the TableRow tblTempDiff into row and then hide whatever columns i want to hide?

Please ask me questions if you need more information, as i know i am not the best person when it comes to explaining my questions.

  • 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-05T22:34:18+00:00Added an answer on June 5, 2026 at 10:34 pm

    The code behind cannot see the <tr> you created because it’s not a server control. Add the runat="server" attribute to the <tr>:

    <tr id="tblTempDiff" runat="server">
    

    And use System.Web.UI.HtmlControls.HtmlTableRow instead of TableRow. Two different things.

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

Sidebar

Related Questions

I made a simple javacc parser to print text in the command prompt: options

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.