-
使用 MVC 和JQuery 分级数据钻取
利用具有 Razor View Engine 和JQuery 的微软 Model-View-Controller,可以轻松开发网页应用的分级数据钻取。
翻译 maninwest@Codeforge 作者:Pinakpani Dey @ Codeproject
简介
相信你一定遇到过多次这样的情况,你的应用需要以表格形式向用户展示分级数据,让用户钻取数据了解详情。用户喜欢用表格形式的分析数据,而愿意在不同的页面中跳转。
为了实现表格数据的钻取功能,你得花费大量时间开发或者花钱去购买第三方工具。微软的 Model-View-Controller 具有Razor View Engine 和 JQuery ,几分钟就可完成钻取表格数据。
本文将向你介绍如何创建 MVC 应用来钻取表格数据。请注意,我主要专注于功能性而非美观性。在此演示中,我将使用学生对象获取学生信息。学生Student 对象将包含课程Course 对象进行课程描述
创建 MVC 4 网页应用
使用Visual Studio 2012 创建带 MV4 网页应用的新项目。选择Internet 或 Intranet 应用模板。我选择了Internet 应用模板。确保在View Engine 中选择了Razor 。
默认情况下,Visual Studio 将为控制器、模型和视图创建多个文件。在此演示中,我们将修改应用的登录页面。换言之,我们将使用 Index.cshtml 视图显示学生数据。
首先是整理、打开 Index.cshtml 并删除所有代码行并保存文件。我们随后将使用我们的代码更新。
向项目添加JQuery 脚本
- 2022-06-14 06:33:09下载
- 积分:1
-
onlineShop
办公用品网上商城的设计与实现说明书文档,包含了需要完成的功能(Design and Implementation of the office supplies online store manual document contains the function that needs to be done)
- 2013-04-04 17:02:31下载
- 积分:1
-
cool广告交换
资源描述perl盟出的功能很强的广告交换,代码可通过email传给客户,客户可在线修改网站资料.
- 2022-03-24 17:29:34下载
- 积分:1
-
MCMC_Gibbs
由matlab实现的从高斯分布数据中进行Gibbs采样的示例程序,代码中我已加注释,比较好理解,对于学习MCMC的同学比较有帮助。当初我理解GIbbs采样非常痛苦,希望这份代码对与我有相同经历的同学帮上忙(Realized by MATLAB the Gauss distribution data of Gibbs sampling sample program, the code I have to add a comment, is better understood, more helpful for students learning MCMC. I understand GIbbs sampling is very painful, hope this code on and I have the same experience of the students help
)
- 2021-03-19 21:09:18下载
- 积分:1
-
SenchaSampleProject
SENCHA TOUCH2的一个简单代码(the codes about sencha touch2)
- 2012-03-22 20:37:27下载
- 积分:1
-
meituan
meituan python 爬虫,使用python语言,实现对美团网站的自动抓取分析(meituan python reptile, using python language to realize the US group website automatically crawl Analysis)
- 2016-06-07 13:18:51下载
- 积分:1
-
32、SpringMVC模型
说明: 采用Java语言,Eclipse开发工具,利用MAVEN管理jar包开发SpringMVC模型框架,通过Web端访问Controller,进而调取服务。(Using Java language, Eclipse development tools, using MAVEN management jar package to develop Spring MVC model framework, access Controller through the Web side, and then invoke services.)
- 2020-06-23 06:40:02下载
- 积分:1
-
Jshop小程序商城
说明: Jshop小程序商城,是一款开源的电商系统,为中小企业提供最佳的移动电子商务解决方案。后台采用Thinkphp5.1框架开发,执行效率、扩展性、稳定性值得信赖,前台H5采用VUE开发,增加用户体验。(Jshop Small Program Mall is an open-source e-commerce system, which provides the best mobile e-commerce solutions for small and medium-sized enterprises. Background uses Thinkphp 5.1 framework development, implementation efficiency, scalability, stability is trustworthy, front H5 uses VUE development, increase user experience.)
- 2020-06-16 14:25:20下载
- 积分:1
-
ECASP_tutorial.pdf.tar
adding custom ip EDK
- 2009-09-24 19:11:02下载
- 积分:1
-
infor
新闻信息发布,建议好用,无病毒,放心使用(news)
- 2010-08-13 13:12:21下载
- 积分:1