Solved

Posting data in Table using ASP.NET

Posted on 2009-07-12
3
183 Views
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...

Thanks.
0
Comment
Question by:arberb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

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

Author Comment

by:arberb
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 ?!
0
 

Accepted Solution

by:
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
                        Next
                        For Col = 4 To 4
                            Dim extra1 As Double = mytable.Rows(Row).ItemArray(Col)
                            extra = extra1 * 0.05
                            Textbox3.Text += Convert.ToString(extra) + " "
                        Next
 
                        Dim exam As Double
                        For Col = 5 To 6
                            exam = mytable.Rows(Row).ItemArray(Col)
                            exams += exam
 
                        Next
                        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
                        Next
                        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
                    Next
 
                Next

Open in new window

0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

729 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