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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:06:30+00:00 2026-05-23T04:06:30+00:00

Im working with a asp.net control (.ascx). I add rows dynamically to a table

  • 0

Im working with a asp.net control (.ascx).

I add rows dynamically to a table like this with jQuery.

$('#<%= doorFileNameTable.ClientID %>').after('<tr><td></td><tr/>').append('<tr><td>' +     fileName + '</td><tr/>')

<asp:Table runat="server" ID="doorFileNameTable">
            <asp:TableRow><asp:TableCell></asp:TableCell></asp:TableRow>
        </asp:Table>

But i cant see the dynamically added rows in the codebehind when i try like this, its always empty:

Table doorNamesTable = doorFileNameTable;

and i need to submit them to a database. Any ideas?

  • 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-23T04:06:30+00:00Added an answer on May 23, 2026 at 4:06 am

    Dynamically added content will never survive a postback to the server, because the server didn’t initially render it and it’s not retained through the viewstate of the control. However, any data posted back with an ID within the form can be accessed through the Request.Form collection, or you can use a hidden field to store any dynamically generated content; the hidden field posts to the server, the server can respond to the content.

    Dynamic content needs to be managed on every postback though; that’s the challenge with dynamic content and the server.

    HTH.

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

Sidebar

Related Questions

Okay, this may seem silly, but on an ASP.NET .ascx control, I'm trying to
I built custom ASP.NET control and it's working fine when I add it manually
I am working on a project that uses the asp.net ajax control toolkit and
I'm working with an ASP.net 2.0 GridView control that is bound to the results
After working with ASP.Net MVC, it has me thinking about Rails. I worked with
I'm working with a table of asp.net controls on client side. They are all
I am working on an ASP.net Ajax custom control, I have tried to derive
I am working on some ASP.NET Server Control, and I have an issue. Maybe
I'm working on an ASP.NET project using MVP architecture. We would like to use
I am working on ASP.NET application where I am reusing a user control. The

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.