Publishing a website to a local folder

本文解答了如何使用Visual Web Developer 2005 Express创建并发布本地网站到文件夹,以便刻录到CD上。讨论了使用Copy Website选项作为Publish功能的替代方案,并解释了为何不能直接通过Internet Explorer打开ASPX文件。

来源:http://www.imcoder.org/upgrade/208420.htm

 

Q:

Hello everyone!

I have downloaded and installed visual web developer 2005 express, I would like to create website to publish to a local folder for writing to a CD (like an autorun website). I cannot find out how you are supposed to do that, if anyone has any suggestions, they would be greatly appriciated!

Thank You!

A:

 Hi,

VWD is intended for non-commercial/student use, hence the Publish option was not made available. Check this link for an option:

http://www.cyberactiva.com/dettaglio.asp?id=384

Also you can use the Copy Website option too. Check out the last sections of this article:

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/vwd.aspx

Hope this helps,

Vivek 

 

A:

Ok, that seemed to work. How do you open an .aspx file with Internet Explore, when I try to open the files with Internet explorer, it shows an error.

Thanks.

A:

you can simply type:

http://yoursitename.com/yourPage.aspx

 Hope this helps,

Vivek

A:

You cannot open aspx with IE, aspx files are for Web server ASP.NET process only. You cannot really package Web site on a CD and open aspx from CD like you can do with HTML. ASPX files are processed on Web server by ASP.NET runtime, runtime generates HTML and sends it to the browser. I.e. when you type http://mysite.com/default.aspx in the browser, server does NOT send aspx to the browser. It sends generated HTML.

A:

Yes, I could not open the .aspx file from my local drive that way.

So I should just stick with HTML and JS. right?

A:

If you have to ship site on CD and have is accessible without a Web server, then yes.

转载于:https://www.cnblogs.com/kangshifu/archive/2008/08/14/1267857.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值