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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T14:23:21+00:00 2026-05-24T14:23:21+00:00

I have a table row that holds my paging controls in a ListView as

  • 0

I have a table row that holds my paging controls in a ListView as follows (partial layout):

<asp:ListView ID="lvOrderItems" runat="server" 
    DataSourceID="odsShoppingCart"
    DataKeyNames="ProductNumber"
    ItemPlaceholderID="lvItemContainer">
    <LayoutTemplate>
        <table id="lvCart" runat="server">
            <tr id="lvHeader" runat="server">
            ...
            </tr>
            <tr id="lvItemContainer" runat="server"></tr>
            <tr id="lvPaging" runat="server">
            ...
            </tr>
        </table>
    </LayoutTemplate>

In my code-behind, I handle the DataBound event as follows, and I am planning on hiding the entire lvItemContainer row conditionally (for now, I am just trying to hide the row itself without conditions):

Protected Sub lvOrderItems_DataBound(ByVal sender As Object, ByVal e As EventArgs) Handles lvOrderItems.DataBound
    Dim lvItemContainer As HtmlTableRow = CType(lvOrderItems.FindControl("lvItemContainer"), HtmlTableRow)
    If Not lvItemContainer Is Nothing Then
        Response.Write("hit1")
        lvItemContainer.Visible = False
    End If

    Dim lvPaging As HtmlTableRow = CType(lvOrderItems.FindControl("lvPaging"), HtmlTableRow)
    If Not lvPaging Is Nothing Then
        Response.Write("hit2")
        lvPaging.Visible = False
    End If
End Sub

So when this runs on DataBound, hit1 is never fired, but hit2 is… any ideas what is happening here?

  • 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-24T14:23:22+00:00Added an answer on May 24, 2026 at 2:23 pm

    Instead of attempting to (unsuccessfully) adjust the visibility of the ItemPlaceholderID container, I’ve set the visibility of the individual rows in the container.

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

Sidebar

Related Questions

I have a table row that has the error message in it. <tr runat=server
I have a table row that needs to be hidden when the anchor with
I have a table row, and within that, I have a td (whatever it
I have a 5 million row table that gets hit with a specific query
We have a 10 thousand row table that has just 2 columns, a primary
I have a multi-row insert that looks something like: insert into table VALUES (1,
I have a table structure that looks like: <table> <tr id=row1> <td> <div>row 1
I have a MySQL table that will only have one row. What should my
I have a function that allows users to edit a row in a table
I'm trying to have a simple html table, that highlights a row as a

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.