为什么ASP.NET没有main()方法? [英] why ASP.NET don't have main() method?

查看:81
本文介绍了为什么ASP.NET没有main()方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么ASP.NET没有main()方法?

why ASP.NET don't have main() method?

推荐答案

它确实 - 它只是你永远不会看到它,因为它在软件中提供您的网站 - IIS - 而不是客户端连接时运行的特定应用程序。



您的网站不需要主要方法,因为它基于在页面上 - 所以你得到一个页面加载甚至作为页面的主方法。
It does - it's just you never see it, because it is in the software "serving" your website - IIS - rather than a specific application that runs when a client connects.

Your website doesn't need a "main" method because it is based on pages instead - so you get a page Load even which acts as the "main" method for the page.


这篇关于为什么ASP.NET没有main()方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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