Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: MVC3
Hi,
 
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
 

Thanks
 
Kim
Posted 19-Oct-12 6:28am

1 solution

Rate this: bad
good
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.
  Permalink  
Comments
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 http://www.codeproject.com/Articles/344292/ASP-NET-MVC3-Razor-With-jQuery-For-Beginners
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 OriginalGriff 277
1 Maciej Los 230
2 BillWoodruff 205
3 Sergey Alexandrovich Kryukov 195
4 DamithSL 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web04 | 2.8.141216.1 | Last Updated 19 Oct 2012
Copyright © CodeProject, 1999-2014
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