Click here to Skip to main content
15,886,036 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi, I have made a order page using MVC 2 working well I have inserted the orders in database now I want make a search and select page for order where user would be shown.

1- OrderID
2- OrderDate
3- Company that ordered.
4- Amount.

I want a table showing these 4 columns and if user clicks a orderid it would pull up rest of the columns from database for selected order and pass that to the order page that I have already made. I am new to MVC and want to know the best techniques so please guide me if you know any link to such article.
Posted

1 solution

And what have you done so far?
If a simple list is enough, the demo project in the Visual Studio template is a good starting point. But this is also a simple, but good tutorial: http://kenneththorman.blogspot.hu/2010/06/aspnet-mvc-20-master-detail-views.html[^]
If you want a searchable, sortable table, look for a jquery grid like here: An Example to Use jQuery Grid Plugin in MVC - Part 1[^], http://www.trirand.com/blog/?page_id=6[^]. Or look around here: http://stackoverflow.com/questions/177275/grid-controls-for-asp-net-mvc[^]
 
Share this answer
 

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