使用C#网页创建Asp.net并在没有Visual Studio的情况下运行它 [英] Creating a Asp.net with C# web page and running it without Visual Studio

查看:72
本文介绍了使用C#网页创建Asp.net并在没有Visual Studio的情况下运行它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我创建了一个可以执行计算的网页,并希望将该页面显示给我的朋友.但是它们没有可视的工作室,并且我的页面是由ASP.NET和C#组成的.

我只是想知道我是否可以在不使用VISUAL STUDIO和任何其他计算机的情况下使它运行的页面.如果是,请回答我.

谢谢.

HELLO,
I CREATED A WEB PAGE WHICH CAN PERFORM CALCULATIONS.AND I WANTED TO SHOW THE PAGE TO MY FRIENDS.BUT THEY DON''T HAVE VISUAL STUDIO AND MY PAGE IS MADE UP OF ASP.NET AND C#.

I JUST WANTED TO KNOW THAT WHETHER I CAN MAKE IT A PAGE SUCH THAT WE CAN RUN IT WITHOUT USING VISUAL STUDIO AND ON ANY OTHER COMPUTER. IF YES PLEASE DO ANSWER ME.

THANK YOU.

推荐答案

您需要运行的称为HTTP服务器,它应该已启用ASP.NET.您可以将其与演出所用的Web浏览器在同一台计算机上运行,​​也可以在网络上的某个地方运行.

您是否注意到使用Visual Studio运行的是特殊的开发" HTTP服务器.如果您不清楚服务器在做什么(我从问题中怀疑这一点),我会说您的陈述我创建了一个由ASP.NET和C#组成的网页……"有点夸张. :-)如果不是这种情况,我深表歉意.

我只知道这样的服务器有两个候选人(不包括开发服务器).一个是IIS,另一个是带有Mono的Apache,以及一个用于实现ASP.NET功能的模块,称为"mod_mono".请参阅:

http://en.wikipedia.org/wiki/Internet_Information_Services [ http://www.iis.net/ [ ^ ];

http://en.wikipedia.org/wiki/Mono_%28software%29 [ ^ ],
http://www.mono-project.com/Main_Page [ http://en.wikipedia.org/wiki/Mod_mono [ http://www.mono-project.com/Mod_mono [ http://en.wikipedia.org/wiki/Web_hosting_service [ ^ ]),然后在此部署您的网站,并且该服务将为您服务您的网站.您至少可以在某些试用期内免费获得它.

—SA
What you need to run is called HTTP server, and it should be ASP.NET-enabled. You can run it on the same computer as the Web browser used for the show or somewhere on the net.

Did you notices that with Visual Studio, you were running a special "development" HTTP server. If you don''t clearly understand what the server was doing (which I suspect from the question), I would say that your statement "I created a Web page… made up of ASP.NET and C#" is a certain exaggeration. :-) I apologize if this is not the case.

I know only two candidates for such a server (not counting the development server). One is IIS, another is Apache with Mono and a module used to implement ASP.NET functionality called "mod_mono". Please see:

http://en.wikipedia.org/wiki/Internet_Information_Services[^],
http://www.iis.net/[^];

http://en.wikipedia.org/wiki/Mono_%28software%29[^],
http://www.mono-project.com/Main_Page[^];

http://en.wikipedia.org/wiki/Mod_mono[^],
http://www.mono-project.com/Mod_mono[^].

IIS is only for Windows, Apache-based solution can work on different platforms, including Windows and Linux.

Practically, you can order a Web hosting service (http://en.wikipedia.org/wiki/Web_hosting_service[^]) and deploy your Web site there, and the service will serve up your site for you. You can have it free of charge, at least for some trial period.

—SA


这篇关于使用C#网页创建Asp.net并在没有Visual Studio的情况下运行它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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