我想开发ASP.Net项目 [英] I want to develop ASP.Net Project

查看:60
本文介绍了我想开发ASP.Net项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想开发医学项目.在我的项目中,我应该开发MVC.在开始时,我通常会开发Project,然后将MVC插入Forms,是否可以.我可以这样做吗

请任何人回答此问题

I want to develop Medical Project. In my Project I should develop MVC. In Starting I develop Project normally, then i insert MVC to Forms ,is it possible.can i do this

Please anybody reply for this problem

推荐答案

您首先必须将该网站转换为Web应用程序.在Visual Studio的解决方案资源管理器中的网站节点上单击鼠标右键时,应具有转换为Web应用程序"选项.这是第一步.

下一步是将项目GUID从基本的ASP.NET Web应用程序更改为MVC应用程序GUID,以便获得对添加控制器和视图的右键单击支持.

You first have to convert that web-site into a web application. When you right-click on the web-site node in Visual Studio''s Solution Explorer, you should have an option "Convert to Web Application". This is the first step.

The next step is to change the project GUIDs from a basic ASP.NET Web application into MVC application guids, so you get right-click support for adding controllers and views.

注意:

请不要进行转换,因为经典asp和MVC之间有很多差异,因此,最好在MVC中进行重写,以避免出现很多错误.

Please dont go with conversion because there are lot of difference between classic asp and MVC So you better rewrite in MVC to avoid lot of errors.


MSDN表示" ASP.NET MVC为您提供了一种基于模式的强大功能来构建动态网站,该功能可以使关注点清晰地分离. "

使用MVC ASP创建第一个Web应用程序. NET [
MSDN Says "ASP.NET MVC gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns."

Create first web application with MVC ASP.NET[^]


这篇关于我想开发ASP.Net项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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