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

  • Home
  • SEARCH
  • 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 8239459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:09:24+00:00 2026-06-07T20:09:24+00:00

I have a standard dataset that I get from my SQL server 2008 database..

  • 0

I have a standard dataset that I get from my SQL server 2008 database..

ID       Name
1        Joe
2        Ted

where I use c# to typically handle the data and add it to a table.

I’d like to create a table in javascript on my page, but I’m not sure where to begin.

There is obvioulsy more columns and rows in this table, but I included only a small portion of the data for ease.

           <div id="divWhatIf" runat="server">
                <table id="tblWhatIfByMonth" border="1" cellpadding="0" cellspacing="0" runat="server">
                    <tr id="rowWhatIfHeaderRow" runat="server">
                    </tr>
                </table>
            </div>

My aspx page looks like and I’d like to add each datarow to tblWhatIfByMonth.

  • 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-07T20:09:26+00:00Added an answer on June 7, 2026 at 8:09 pm

    You can use AJAX to get the content for the table. The response text can be the entire markup for the table (which makes life quite easy) or if only part of the table needs to be replaced, send the data as JSON formatted text.

    The JSON is converted to an object that can then be used to create the table, e.g.

    [
      {"ID":"1","Name":"Joe"},
      {"ID":"2","Name":"Ted"}
    ]
    

    or

    [
      ["ID","Name"],
      ["1","Joe"],
      ["2","Ted"}
    ]
    

    You can also send CSV data and parse it (say with a regular expression) and build all or part of a table.

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

Sidebar

Related Questions

I have a dataset that points to a View in my SQL database, and
I have a standard active record model with an attributes that is required: class
I have a standard store schema with an InvoiceLine table that contains Products. I'd
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
Basically i have a wcf service that returns a dataset of 2000 records. When
I have a rails app that references the TMY3 meteorological dataset , which is
I have a winforms app that uses a strongly typed custom DataSet for holding
I have imported a stored procedure that returns a dataset into my Entity Framework.
I have a web application that have standard form authentication declared, like this: <login-config>
I have a very large dataset - millions of records - that I want

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.