Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a table in a database named as "Student" and the tabel structure in the database is as follows
Quote:

Events Students Name Position
Run XYZ 1St
Run ABC 2ND
Run MNO 3RD
High Jump PQR 1st
High Jump EFG 2nd
High Jump KLM 3rd

Now I want to show the above data in a my web page in a table view using any data control which fetch data from the above table "Student" located in database in asp.net like this
Quote:

Events Students Name Position
 Run XYZ 1St
ABC 2ND
MNO 3RD
High Jump PQR 1st
EFG 2nd
KLM 3rd

How can I do this in asp.net with c#?
Posted

use gridview to show this item or repeater as you want. look This[^]
 
Share this answer
 
Why dont you check out this[^] article. It has the similar scenario you discussed.
 
Share this answer
 
Comments
Vani Kulkarni 18-Jun-12 5:48am    
Nice link!
Pankaj Nikam 18-Jun-12 5:52am    
Thank you :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900