小编apu*_*rva的帖子

Global.asax.cs文件在哪里?

我正在使用VS 2008.我已经从File-> New-> Website-> Asp.net Website创建了一个新的Asp.net网站项目.

现在我想将Global.asax和.cs文件添加到项目中.所以我右键单击项目 - >添加新项目 - >全局应用程序类.然后我点击了添加按钮.

Global.asax文件添加了内容,如下

<%@ Application Language="C#" %>

 <script runat="server"%>

    void Application_Start(object sender, EventArgs e) 
    {
        // Code that runs on application startup

    }

    void Application_End(object sender, EventArgs e) 
    {
        //  Code that runs on application shutdown

    }

    void Application_Error(object sender, EventArgs e) 
    { 
        // Code that runs when an unhandled error occurs

    }

    void Session_Start(object sender, EventArgs e) 
    {
        // Code that runs when a new session is started

    }

    void …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net visual-studio-2008 global-asax

45
推荐指数
2
解决办法
10万
查看次数

将Html表转换为datatable的最佳方法是什么?

我有一个html表.我想将其转换为数据表.这样做的最佳方法是什么?谢谢

c#-3.0

9
推荐指数
1
解决办法
3万
查看次数

标签 统计

.net ×1

asp.net ×1

c# ×1

c#-3.0 ×1

global-asax ×1

visual-studio-2008 ×1