问题描述
我在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中的代码在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!