Click here to Skip to main content
11,811,971 members (53,431 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: MVC3

Am new to mvc3. i wants to show list of records in view without using gridview or other plug-in such as jquery table and datatable.

Just by using html table . and also ADD,EDIT also has to do.

please some one help me. i have searched in google still i did't get ab idea.

Please some one help me


Posted 19-Oct-12 5:28am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

1) The GridView control is not a plug-in. It is a default usercontrol that is at your disposal. It will write the table for you and make your life much, much simpler. I would encourage you to use it.
2) If you really want to go through the pain of manually generating an html table by code-behind, then go ahead. You can create the html in your controller as a string and then assign the resulting string to the innerHtml of a span or div tag in your view.
kimberly wind at 19-Oct-12 11:51am
i know the idea Marcus but i don't know how to do that coding
i have gone throw this link
but here they used jqury plugin
Marcus Kramer at 19-Oct-12 12:16pm
As a question, why do you not want any jquery?
kimberly wind at 19-Oct-12 11:52am
and also i did not mentioned gridview as plugin please read it .
kimberly wind at 19-Oct-12 11:53am
without giving any coding or link u suppose not post is as solution you have says this under comments :) its not make sense in posting as answer
Marcus Kramer at 19-Oct-12 12:16pm
I'm providing sound advice as to how it should be approached. That does not always require code snippets. Basically biting the hand that feeds you isn't a great approach from your side.

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

  Print Answers RSS
0 KrunalRohit 354
1 Palash Mondal_ 185
2 CHill60 180
3 OriginalGriff 178
4 Abhinav S 175
0 OriginalGriff 3,888
1 KrunalRohit 2,392
2 CPallini 2,240
3 Maciej Los 2,155
4 ppolymorphe 1,725

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 19 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100