Display an sqlquery in mvc

Posted by Klbaiju under ASP.NET MVC on 9/9/2014 | Points: 10 | Views : 740 | Status : [Member] | Replies : 1
Hi,

Iam a beginner in MVC.I know how to display records in Table in MVC using codefist method in Entity Framework.

my requirement is ,i want to display records from a query.i have done only basic example in which i know the field names of table.

in my requirement i don't know the names of fields.means fetch the field names from the query.

how it is possible.

Regards

Baiju




Responses

Posted by: Sheonarayan on: 9/9/2014 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Here is the exact solution of your problem http://www.dotnetfunda.com/articles/show/2669/auto-populate-datatable-columns-to-the-views-in-aspnet-mvc.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response