Click here to Skip to main content
12,063,006 members (52,302 online)
Rate this:
 
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 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 19-Oct-12 12:16pm
   
As a question, why do you not want any jquery?
kimberly wind 19-Oct-12 11:52am
   
and also i did not mentioned gridview as plugin please read it .
kimberly wind 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160204.4 | Last Updated 19 Oct 2012
Copyright © CodeProject, 1999-2016
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