Click here to Skip to main content
15,896,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
 
Share this answer
 
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
fjdiewornncalwe 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
fjdiewornncalwe 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)



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