Posting data in Table using ASP.NET

Posted on 2009-07-12
Last Modified: 2013-11-26
Hello everyone,

I have a database in ms access, and a set of data, I'm trying using ASP.NET when the user press the button Read to show the data columns that I want in a table, everything works fine, but the problem is that I can't figure it out how to post in the table the data.. could someone help me please...

Question by:arberb
  • 2
LVL 15

Expert Comment

ID: 24836608
Please explain more over here or put some code snippet.

Author Comment

ID: 24837696
The question is How am I gonna produce dynamically rows and cells, in order the data to be added to it.. ?!

Like datagrid, but instead I want to use table ?!

Accepted Solution

arberb earned 0 total points
ID: 24837847
Here is the code that needs to be in the table,

This code produce the data, getting them from an access DB

For Each mytable In myDS.Tables

                    For Row = 0 To mytable.Rows.Count - 1

                        For Col = 0 To 4

                            getavg = mytable.Rows(Row).ItemArray(Col)

                            getsum += getavg


                        For Col = 4 To 4

                            Dim extra1 As Double = mytable.Rows(Row).ItemArray(Col)

                            extra = extra1 * 0.05

                            Textbox3.Text += Convert.ToString(extra) + " "


                        Dim exam As Double

                        For Col = 5 To 6

                            exam = mytable.Rows(Row).ItemArray(Col)

                            exams += exam


                        exams = exams / 2

                        exams = exams * 0.15

                        Textbox3.Text += Convert.ToString(exams) + " "

                        For Col = 7 To 7

                            Dim final1 As Double = mytable.Rows(Row).ItemArray(Col)

                            final = final1 * 0.3

                            Textbox3.Text += Convert.ToString(final) + vbNewLine


                        Dim divide As Double = getsum / 4

                        multiply = divide * 0.4

                        TextBox2.Text += Convert.ToString(multiply) + vbNewLine

                        getsum = 0

                        all = multiply + exams + extra + final

                        TextBox4.Text += Convert.ToString(Math.Round(all - 0.005, 2)) + vbNewLine



Open in new window


Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization ( and XML Serialization ( In this article we will try to know more about SOAP (Simple Object Acces…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now