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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:55:44+00:00 2026-05-22T23:55:44+00:00

In page_load, I create a table and fill it with data gathered from a

  • 0

In page_load, I create a table and fill it with data gathered from a database. Then after allowing the user to modify it, I need to make the changes to the database. But I’m not sure how to do this. I have been looking around and now am more confused then when I started. My code to create the table looks like this:
delList.Controls.Clear();

            Table tbl = new Table();
            tbl.ID = "tbl1";
            tbl.BorderWidth = 1;
            delList.Controls.Add(tbl);

This code gets added to a placeholder:

    <asp:PlaceHolder ID="delList" runat="server"></asp:PlaceHolder>

I want to have a button at the bottom of the page to allow the user to select in order to save the changes but I can’t figure out how to do this. Mostly because there will be a lot of rows that need to be updated. I was thinking it might be easiest to parse through the table using javascript and then somehow calling a function to make update the database one row at a time. But I’m not sure if this is even possible.

All help will be greatly appreciated.

  • 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-22T23:55:45+00:00Added an answer on May 22, 2026 at 11:55 pm

    It would be a lot easier if you used a control that is specific to this kind of operation. I mean a control like GridView.

    GridView displays the values of a data
    source in a table where each column
    represents a field and each row
    represents a record. The GridView
    control enables you to select, sort,
    and edit these items.

    The GridView control is used to
    display the values of a data source in
    a table. Each column represents a
    field, while each row represents a
    record. The GridView control supports
    the following features:

    1. Binding to data source controls, such as SqlDataSource.
    2. Built-in sort capabilities.
    3. Built-in update and delete capabilities.
    4. Built-in paging capabilities.
    5. Built-in row selection capabilities.
    6. Programmatic access to the GridView object model to dynamically set properties, handle events, and so on.
    7. Multiple key fields.
    8. Multiple data fields for the hyperlink columns.
    9. Customizable appearance through themes and styles.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this .NET web app that draws a table in Page_Load. Then after
I try to fill listbox. I generated textbox and labels from database. (My platform
I want to create dynamic menu from Database it's mean i have Catagory is
The following code is implemented in Page_Load event to show SaveFileDialog to the user
I've added the following code to my masterpage (Page_Load) so once a user logs
I have an application wherein the application will need to check whether one user
I have a ASP table that I create dynamically on the page load event.
I am planning to create a single page, where a user can load his
I have a SQL table full of logs that shows response time from my
I am dynamically creating a table with data and check boxes in it, my

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.