简体   繁体   English

在仍然使用ASP.NET MVC的情况下,如何为网站开发快速原型?

[英]How can one develop a rapid prototype for a web site while still using ASP.NET MVC?

I am developing a website in which I want to use ASP.NET MVC 5 because the site has the potential to be quite large and require the separation of concerns that MVC provides. 我正在开发一个我想在其中使用ASP.NET MVC 5的网站,因为该网站的潜力可能很大,并且需要MVC提供的关注点分开。 However, the client wants me to show him a "prototype" of the home page which is simplay a single page that shows an image, some text, and requires a user login (and he wants to see it ASAP). 但是,客户希望我向他显示主页的“原型”,即只显示显示图像,一些文本并需要用户登录的单个页面(并且他希望尽快看到它)。 How can I reconcile the fact that developing a proper ASP.NET MVC site requries a large amount of initial time to set up with my requirement to quickly put together a page to show my client what he has in mind? 如何协调一个事实,即开发一个合适的ASP.NET MVC网站需要大量的初始时间来设置我的要求,以便快速地整理一个页面来向客户显示他的想法? Should Also, should I consider using Web Forms over Razor for this initial part of the site? 另外,我是否应该考虑在网站的最初部分使用Web Forms over Razor?

您只需修改默认视图即可快速创建原型,而无需创建模型控制器等。MVC中开箱即用地存在登录功能。

You can download one of MVC templates from Visual Studio. 您可以从Visual Studio下载MVC模板之一。

Select File > New Project > Online > Templates . 选择File > New Project > Online > Templates

You can find them also here (most of them are kept are up to date): https://visualstudiogallery.msdn.microsoft.com/site/search?query=mvc&f[1].Value=mvc&f[1].Type=SearchText&f[0].Value=templates&f[0].Type=RootCategory&ac=4 您还可以在这里找到它们(其中大多数保持最新): https : //visualstudiogallery.msdn.microsoft.com/site/search?query=mvc&f[1].Value=mvc&f[1].Type= SearchText&f [0] .Value = templates&f [0] .Type = RootCategory&ac = 4

The Visual Studio Single Page Application template is super quick to setup. Visual Studio单页应用程序模板的设置超级快速。 It'll run right out of the box. 它会立即可用。 Just add your image and text to the Home view. 只需将您的图像和文本添加到主视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM