如何在MVC 4应用程序中编写母版页的代码 [英] How to write code for master page in MVC 4 application

查看:94
本文介绍了如何在MVC 4应用程序中编写母版页的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的MVC 4应用程序主页页面标题部分有登录表单,现在我想在主页面侧编写登录按钮的代码,就像代码后面的普通代码一样。任何一个有想法帮我编码。



我尝试了什么:



我正在写作主页面中的登录表单代码MVC 4应用程序

In my MVC 4 Application Master page side header portion there is sign-in form, now i want to write a code for sign-in button in Master page side like normal code behind code.Any one have idea help me code.

What I have tried:

I'm trying to write code for sign-in form in Master page MVC 4 application

推荐答案

主页是webforms的一项技术,你没有在MVC中使用它们。即便如此,你的问题基本上是如何编写网站。你不能通过在快速回答论坛上提问来获得这样的东西,获得一本关于MVC的书并通过它,或者至少通过一些在线教程,以及如何做到这些事情将变得清晰。< br $> b $ b

第1部分:概述和文件 - >新项目| ASP.NET站点 [ ^ ]
Master pages are a technology from webforms, you don't have them in MVC. Even then your question is basically "how do I write a website". You can't learn something like this from asking questions on a "quick answers" forum, get a book on MVC and go through it, or at least go through some on-line tutorials and how to do these things will become clear.

Part 1: Overview and File-&gt;New Project | The ASP.NET Site[^]


这篇关于如何在MVC 4应用程序中编写母版页的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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