如何在Visual Studio 2008中使用ASP.NET

时间:2022-01-11 14:41:53

I haven't used Visual Studio since VB 3 and am trying to give it a shot with ASP.NET. It seems that it should be able to connect to a website (via some sort of ftp like protocol I figure) and allow to edit without having to manually upload/download the files. Is this the way it is supposed to work or am I mis-understanding? I have tried using 'create new website' and 'open website' using my testing domain (hosted by godaddy, wondering if that may be the issue as well), each time it gives me errors. I'm not sure if I'm doing something wrong or trying to do something it wasn't meant to.

我从VB 3开始就没有使用过Visual Studio,我试图用ASP.NET来试一试。它似乎应该能够连接到一个网站(通过某种类似我的协议的ftp)并允许编辑而无需手动上传/下载文件。这是它应该工作的方式还是我误解了?我尝试使用我的测试域(由godaddy托管,想知道这是否也是问题)使用'创建新网站'和'打开网站',每次它给我错误。我不确定我做错了什么或试图做一些不应该做的事情。

2 个解决方案

#1


4  

You really don't want to be working directly on a live web site, do you? That's just crazy. One little mistake and you've hosed the site.

你真的不想直接在网站上工作,对吗?那太疯狂了。一个小小的错误,你已经冲洗了网站。

Visual Studio now has it's own built in web server. You use that for testing. If you really don't want to use that you can put IIS on your local machine or set up a Dev/QA server somewhere. In that case, you'd edit it via a file share.

Visual Studio现在拥有自己内置的Web服务器。你用它来测试。如果您真的不想使用它,可以将IIS放在本地计算机上或在某处设置Dev / QA服务器。在这种情况下,您可以通过文件共享进行编辑。

You should be using some kind of source control. Even for a single developer it's very important. When finished with a programming session, you check your updates back into source control.

你应该使用某种源代码控制。即使是单个开发人员也非常重要。完成编程会话后,您将更新检查回源代码管理。

Finally, only after the site's gone through a suitable QA process, the production server is updated from source control, not from within visual studio.

最后,只有在网站经过适当的QA流程之后,生产服务器才会从源代码控制更新,而不是从Visual Studio中更新。

#2


1  

I would develop your website locally and ftp it to your godaddy website after or use the publish website feature in VS

我会在本地开发您的网站,并在使用VS中的发布网站功能后将其ftp到您的godaddy网站

#1


4  

You really don't want to be working directly on a live web site, do you? That's just crazy. One little mistake and you've hosed the site.

你真的不想直接在网站上工作,对吗?那太疯狂了。一个小小的错误,你已经冲洗了网站。

Visual Studio now has it's own built in web server. You use that for testing. If you really don't want to use that you can put IIS on your local machine or set up a Dev/QA server somewhere. In that case, you'd edit it via a file share.

Visual Studio现在拥有自己内置的Web服务器。你用它来测试。如果您真的不想使用它,可以将IIS放在本地计算机上或在某处设置Dev / QA服务器。在这种情况下,您可以通过文件共享进行编辑。

You should be using some kind of source control. Even for a single developer it's very important. When finished with a programming session, you check your updates back into source control.

你应该使用某种源代码控制。即使是单个开发人员也非常重要。完成编程会话后,您将更新检查回源代码管理。

Finally, only after the site's gone through a suitable QA process, the production server is updated from source control, not from within visual studio.

最后,只有在网站经过适当的QA流程之后,生产服务器才会从源代码控制更新,而不是从Visual Studio中更新。

#2


1  

I would develop your website locally and ftp it to your godaddy website after or use the publish website feature in VS

我会在本地开发您的网站,并在使用VS中的发布网站功能后将其ftp到您的godaddy网站