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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:04:17+00:00 2026-06-16T00:04:17+00:00

In a aspx page I have table as container and tds have different Repeaters

  • 0

In a aspx page I have table as container and tds have different Repeaters in it.

I know table is not a databound control but was wondering there may be a way to use data from dt to control visibility of a tr or any other html control ?

I just tried Page.Databind() but it was not successful and there was an error “Table is not a data bound control”

Please guide.

Thanks

  • 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-16T00:04:17+00:00Added an answer on June 16, 2026 at 12:04 am

    You should use DISPLAY property to ensure that a blank space is not left by the row that is hidden instead of the VISIBLE property.

    With out knowing or seeing your code block for a a sible gle its difficult to second guess but if your using “Show” or Hide” as the swutches to decide wether to show or hide a row………

    maybe your code should read as follows…..

    <tr <%=GetDisplayStatus('switch') %>>
    

    where switch is either “show” or “hide” and your SERVERSIDE function to get the display status should be as follows..

    Function GetDisplayStatus(SwitchState as String) as String
      If SwitchState = "show" then
        return " style=" & chr(34) & "display: block;" & chr(34)
      ElseIf SwitchState = "hide" Then
        return " style=" & chr(34) & "display: none;" & chr(34)
      Else
        ' no action otherwise
        return ""
      End If
    End Function
    

    Please let me know if that works for you.

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

Sidebar

Related Questions

I am trying to add a table in aspx page and need to have
In my web app, I have an aspx page which contains an html table
I have a custom server control which renders some HTML on the aspx page
I have a repeator control in my aspx page. I am binding data to
I have the following table structure in my aspx page. I need to place
In my aspx page I have a tr which is set visible=false by default.
In my .aspx page I have; <%@ Page Language=VB AutoEventWireup=false CodeFile=Default.aspx.vb Inherits=_Default AspCompat=True %>
In my .aspx page which derives from a master page I have a contact
I am developing a aspx page. In the page I have three dropdownlists and
I have page (Default1.aspx) in which I am redirecting to another page (Default2.aspx) using

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.