修改订单页面 [英] Edit page for orders

查看:126
本文介绍了修改订单页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用MVC 2制作了一个订单页面,现在我已经在数据库中插入了订单,我想搜索并选择要显示用户的订单页面.

1- OrderID
2- OrderDate
3-订购的公司.
4-金额.

我想要一个显示这4列的表格,如果用户单击一个orderid,它将从数据库中为选定的订单拉出其余的列,并将其传递给我已经建立的订单页面.我是MVC的新手,想知道最好的技术,因此,如果您知道到此类文章的任何链接,请指导我.

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.

推荐答案

到目前为止,您做了什么?
如果一个简单的列表就足够了,那么Visual Studio模板中的演示项目就是一个很好的起点.但这也是一个简单但很好的教程: http://kenneththorman .blogspot.hu/2010/06/aspnet-mvc-20-master-detail-views.html [在MVC中使用jQuery网格插件的示例-第1部分 [http://www.trirand.com/blog/?page_id=6 [ http://stackoverflow.com/questions/177275/grid-controls -for-asp-net-mvc [ ^ ]
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[^]


这篇关于修改订单页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆