Click here to Skip to main content
15,889,200 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi Team

I have a table, but i does not have data from the db and need some help i am bit struggling to call my records as they have data. I need some help around this mates, please check below.

What I have tried:

<table class="table">
          <thead>
              <tr>
                  <th scope="col">Id</th>
                  <th scope="col">Course</th>
                  <th scope="col">CourseLicence</th>
                  <th scope="col">Nickname</th>
                  <th scope="col">Term </th>
                  <th scope="col">EnrolledAs</th>
                  <th scope="col">Published</th>
              </tr>
          </thead>
      </table>
Posted
Updated 13-Sep-20 23:25pm

1 solution

Web is full of references to show data in grid using bootstrap/asp.net mvc.

Bootstrap table search - examples & tutorial. Basic & advanced usage - Material Design for Bootstrap[^]
How To Create a Filter/Search Table[^]
Creating Grid (Table) With Sorting, Filtering and Paging in Asp.Net MVC[^]

There are many more if needed. Go through them, try out and see if you get stuck.
 
Share this answer
 
Comments
gcogco10 14-Sep-20 5:28am    
Sandeep, ok let me be clear. How do this in asp.net mvc 5? Meaning to pull the records to the database both on the controller and ViewSide. That is my issue not on bootstrap only.
Sandeep Mewara 14-Sep-20 5:44am    
Again, web has examples for showing data in MVC. above examples too are mix of them. Go through them. Once you try, post specific queries with where you get stuck.
gcogco10 14-Sep-20 5:48am    
Ok thanks.

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