浏览器如何编译C#Web代码? [英] How to the browser compile the C# web code?

查看:182
本文介绍了浏览器如何编译C#Web代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写代码时,我遇到了一些麻烦.它是:

1.我为C#网络代码定义了此代码:
<%@页面语言="C#"%>
您能告诉我浏览器如何编译C#代码吗?
我的意思是:Firefox可以引发异常吗?

2.加载时,由C#编写的页面将比javascript和CSS加载得更快或更慢?

3.我需要托管C#支持的代码来运行代码吗?

感谢您的帮助!

When writing code, i got some troubles. It''s:

1. I defined this for C# web code:
<%@ Page Language="C#" %>
Can you tell me how to the browser compile the C# code?
I mean: Can Firefox throw exceptions?

2. When loading, the pages which wrote by C#, will be loaded faster or slower than javascript and CSS?

3. Will I need hosting which is supported for C# to run the code?

Thank for help!

推荐答案

1.浏览器不编译代码. IIS和ASP.Net执行,然后将html发送到浏览器.
2.服务器上的C#负载以及JavaScript和CSS由客户端计算机上的浏览器应用.
3.是的,您需要拥有一个支持ASP.Net的主机.
1. Browsers do not compile code. IIS and ASP.Net do and then send html to the browser.
2. C# loads on the server and JavaScript and CSS are applied by the browser on the client computer.
3. Yes, you need to have a hoster who supports ASP.Net.


这篇关于浏览器如何编译C#Web代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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