如何将asp.net Web表单转换为mvc 5 [英] how to convert asp.net web forms to mvc 5

查看:68
本文介绍了如何将asp.net Web表单转换为mvc 5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望从3层转换到mvc 5而不会干扰业务层和数据访问层只迁移presentaion层(UI)到视图请一步一步地建议我使用示例

1. UI( ASP.NET MVC Web App)

2. BOL(C#Class)

3. BLL(C#Class)

4. DAL(C#类)

i want convert from 3 tier to mvc 5 without disturbing business layer and data access layer migrate only presentaion layer (UI) to views please suggest me in step by step with example
1. UI (ASP.NET MVC Web App)
2. BOL (C# Class )
3. BLL (C# Class )
4. DAL (C# Class)

推荐答案

<%@ Page Language="C#" MasterPageFile="~/MasterPages/Registration.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="WPReg_BasicInfo.aspx.cs" Inherits="KAFWeb.Pages.StudentRegistration.WPReg_BasicInfo" culture="auto" meta:resourcekey="PageResource1" uiculture="auto" %> 
<%@ Register assembly="KAF.WebFramework" namespace="KAF.WebFramework.Pager" tagprefix="cc1"%>
<%@ Register src="../DragAndDropUpload/UCDragAndDropUploadFiles.ascx" tagname="UCDragAndDropUploadFiles" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
		    <script type="text/javascript">
		        function pageLoad() {
		            initInputFields();
		            initGridEvents();
		            dragDropFile();
		            toggleServingMilitaryInfo();
		        }
		        function toggleServingMilitaryInfo() {
		            //


('span.chkservedmilitarybefore input [type = checkbox]')。each(function(){
//
('span.chkservedmilitarybefore input[type=checkbox]').each(function () { //


(this).addClass('chkservedmilitarybefore');
// if(
(this).addClass('chkservedmilitarybefore'); // if (


这篇关于如何将asp.net Web表单转换为mvc 5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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