简体   繁体   English

如何将.NET aspx文件从一台计算机上的项目移动到另一台计算机上的同一项目

[英]How do I move a .NET aspx file from a project on one computer to the same project on another computer

I have a backup of our web application on another computer so I can work on it without disturbing the live version that's hosted on the server. 我在另一台计算机上备份了Web应用程序,因此可以在不影响服务器上托管的实时版本的情况下对其进行处理。 I created two new aspx pages in the project and I wanted to know how to move just those two new pages into the live version of the website. 我在项目中创建了两个新的aspx页面,我想知道如何将这两个新页面移动到网站的实时版本中。

Any suggestions would help ! 任何建议将有所帮助! Thank you. 谢谢。

edit: I made changes to the entire project by adding a new web page. 编辑:我通过添加一个新的网页对整个项目进行了更改。 I want to move only that webpage to the server thats running the live version. 我只想将该网页移至运行实时版本的服务器。 It uses stored procedures. 它使用存储过程。 How do i transfer that to the server as well ? 如何将其也传输到服务器?

Are you using Source Version Control ? 您正在使用源代码版本控制吗?

If the other computer is a dev machine, just use a SVC (tfs, git...). 如果另一台计算机是开发人员计算机,则只需使用SVC(tfs,git ...)。

If you want to update the production and both computers know each other (same network), just publish the website with Visual Studio . 如果要更新生产并且两台计算机彼此了解(相同的网络),只需使用Visual Studio发布网站

Otherwise, publish in a local folder and copy the result of the publish in the bin folder of the production. 否则,在本地文件夹中发布,然后将发布结果复制到生产的bin文件夹中。

I figured it out. 我想到了。 The entire website project folder is hosted as a virtual directory using IIS. 整个网站项目文件夹都使用IIS托管为虚拟目录。 To be clear, I was working with a copy of the same project folder on another computer to which I added a two more web pages. 明确地说,我正在另一台计算机上使用同一项目文件夹的副本,并向其中添加了另外两个网页。

Step 1: Copy the new web pages (.aspx) created and add it to the computer which is acting as the server. 步骤1:复制创建的新网页(.aspx),并将其添加到充当服务器的计算机中。

Step 2: Update the sitemap in the server computer by copy and pasting it. 步骤2:通过复制和粘贴来更新服务器计算机中的站点地图。

Step 3: (optional) 步骤3 :(可选)

IF you have created a new stored procedure ( I used SQL server management studio) and if you are on the same network as the server, you can run the same stored procedure with the target as the server. 如果您创建了一个新的存储过程(我使用过SQL Server Management Studio),并且如果您与服务器位于同一网络上,则可以在目标服务器上运行与该服务器相同的存储过程。 That way you don't have to copy the stored procedure code and create a new one manually on the server. 这样,您不必复制存储过程代码并在服务器上手动创建一个新代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Asp.Net样板,如何将样板项目移动到另一台计算机? - Asp.Net boilerplate,, How to Move boilerplate project to another Computer? 如何在另一台电脑上打开Asp.Net项目 - How to open Asp.Net project in another computer 如何在另一台计算机上使用我的项目数据? - How can I use the data of my project on another computer? 尝试将文件从我的计算机复制到同一网络上的另一台计算机 - Trying to copy a file from my computer to another computer on the same network 如何将文件/目录从我的计算机移动或复制到另一台计算机? - How to move or copy a file/directory from my computer to ather computer? 如何在另一个项目中调用一个项目的方法? - How do I call methods from one project in another project? 如何使用实体框架从另一台计算机运行本地 ASP.NET MVC 应用程序? - How do I run a local ASP.NET MVC application with Entity Framework from another computer? 如何将带有数据库的 C# 项目移动到用户计算机? - How to move a C# project with database to the user computer? 在另一台计算机上运行的ASP.Net MVC项目 - ASP.Net MVC project run in another computer 在另一台计算机上运行包含.sdf文件的项目时出错 - Error in running the project containing .sdf file on another computer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM