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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:12:33+00:00 2026-06-02T01:12:33+00:00

I my asp.net website project with c# code, I have a table in which

  • 0

I my asp.net website project with c# code, I have a table in which I generate rows programmatically. Some of those rows have expand buttons to display more information. For now, I catch the postback caused by the button, parse the name of the button that caused the postback and regenerate all my rows, adding a label to the appropriate rows with the informations that needed to be expanded.

I was wondering if there was a better way to implement a expand/collapse mechanisme that would not require me to regenerate all rows. I tried searching my tables for the rows to add the information, but since the rows are generated programmatically, the table is empty at each postback caused by the button.

  • 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-02T01:12:35+00:00Added an answer on June 2, 2026 at 1:12 am

    You could have a list variable that keeps the row instances that you generated for your table. At postback, instead of generating, you iterate your list and add them in the table. At the same time, you can check, for each row, if it’s the row where you need to add your information.

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

Sidebar

Related Questions

I have an ASP.NET website in which I am loading some validation rules from
I am working with asp.net website project that some of pages need authentication. I
We have a 10+ years old ASP.NET website project, with lots of unused /
I have a project (private, ASP.net website, password protected with https) where one of
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've
I have a asp.net project with c# code behind. I have a static class
I'm working on a ASP.NET website project using VB.NET as backend code. I was
,Hi, I have a asp.net and c# website. In the asp code I use
I have an ASP.NET MVC website and an area project called 'Admin'. So far
I have an existing ASP.NET website with some custom routing, within a Solution that

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.