简体   繁体   中英

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. 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.

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...).

If you want to update the production and both computers know each other (same network), just publish the website with Visual Studio .

Otherwise, publish in a local folder and copy the result of the publish in the bin folder of the production.

I figured it out. The entire website project folder is hosted as a virtual directory using 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.

Step 2: Update the sitemap in the server computer by copy and pasting it.

Step 3: (optional)

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. That way you don't have to copy the stored procedure code and create a new one manually on the server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM