Global.asax file is missing on my Asp.Net Empty Web application project

前端 未结 3 1559
一向
一向 2020-12-30 23:15

I have created a C#-> Asp.Net Empty Web Application (Framework 4.0). I want to add few line of code in Global.asax on Application_Error section. But unfortuantely global.asa

相关标签:
3条回答
  • 2020-12-30 23:46

    You can also add it from project i.e. right click the project and add new item there you can find or search for Global Application Class template and add it.It's done.

    0 讨论(0)
  • 2020-12-30 23:51

    You can add a new file to the project of type Global Application Class

    File -> New -> File -> Global Application Class
    

    Alternately, you can create a new temporary project, which should generate a Global.asax file. Then just copy/paste that into your project.

    0 讨论(0)
  • 2020-12-30 23:55

    Goto File->New->Project->web->Asp.Net Web Application->select Web form-click Ok. Now you are done; you see the Global Application file when you select web forms while creating a new project. Try this and let me know.

    0 讨论(0)
提交回复
热议问题