使用mvc .net在Html 5中进行单页应用程序 [英] single page application in Html 5 using mvc .net

查看:176
本文介绍了使用mvc .net在Html 5中进行单页应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何工具和技术可用于在Html 5中使用mvc .net开发单页应用程序



这是我们目前正在使用的内容



Asp.net mvc

实体框架

淘汰赛Js

我们正在使用SQL服务器数据库使用实体框架创建数据访问。



使用knock.js查看示例后,我们发现需要以json格式传递数据并更改控制器以json格式返回数据,但我们得到了一个实体框架错误做了一些搜索,我们发现了一个修复工具,创建了一个动态对象,并以json格式返回数据并且工作正常。



继续测试我们能够让页面工作。但我们最终得到的是大量的打包和解包数据。这似乎有点多余。我知道没有太多细节,但任何人都可以对我们用来开发这个网站的工具和技术进行修复

Are there any tools and technology to use to develop a single page application in Html 5 using mvc .net

Here's what we are currently using

Asp.net mvc
Entity framework
Knockout Js
We are using SQL server database to create the data access using entity framework.

After looking at samples using knock.js we found that we need to pass the data in json format and we changed our controller to return data in json format and but we were getting an entity framework error doing some more searching we found a fix to create a dynamic object and return the data back in json format and that worked.

Continue along with the testing we were able to get a page to work. But what we ended up with was a lot of packing and unpacking data. Which seem a little redundant. I know there is not much detail but can anyone make a recondition on tools and technology that we can use to develop this website

推荐答案

这篇关于使用mvc .net在Html 5中进行单页应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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