mvc3中Global.asax中的代码在哪里? [英] where is the codes in Global.asax in mvc3?

查看:147
本文介绍了mvc3中Global.asax中的代码在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在mvc3中创建一个默认项目并将其发布在主机上,有关文件中的代码: 发布后的Global.asax中包含一行代码: 代码在哪里?

i create a default project in mvc3 and published it on my host ,what about codes in file: Global.asax after publishing there is a one line code in it: where is the codes?

<%@ Application Codebehind="Global.asax.cs" Inherits="MvcApplication1.MvcApplication"  Language="C#" %>

推荐答案

代码在Global.asax.cs中.在Visual Studio中,如果您在对象资源管理器中的Global.asax文件旁边查看,将会有一个向下箭头.如果单击,您应该看到Global.asax.cs文件.就像VS中的任何其他文件一样,您可以双击该文件,它会打开包含您的代码的文件.

The code is in Global.asax.cs. In Visual Studio if you you look next to the Global.asax file in your object explorer, there will be a down arrow. If you click that you should see the Global.asax.cs file. And just like any other file in VS, you can double-click that and it should open up that file containing your code.

这篇关于mvc3中Global.asax中的代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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