简体   繁体   English

是否可以编辑已发布的visual studio asp.net网站?

[英]is it possible to edit published visual studio asp.net website?

I have published a asp.net website using visual studio. 我使用visual studio发布了一个asp.net网站。 However, I wish to make changes to a web page but I found out that the published site only have .aspx extension files and there is no code-behind .vb file which is like development. 但是,我希望对网页进行更改,但我发现发布的网站只有.aspx扩展名文件,并且没有代码隐藏的.vb文件,就像开发一样。

Is there any way for me to edit without republish again? 有没有办法让我在没有重新发布的情况下进行编辑? Or can I convert the published website back to original as I do not have any backup for the published files. 或者我可以将发布的网站转换回原始网站,因为我没有对已发布文件的任何备份。

Download all the files from the server and use something like a reflector to get the source code from the binary/bin folder. 从服务器下载所有文件并使用反射器之类的东西从binary / bin文件夹中获取源代码。

And for future always use a source control, I use dropbox. 并且为了将来总是使用源控件,我使用dropbox。

The dll's are just the compiled assemblies of your source code. dll只是源代码的已编译程序集。 You can manually update any of the dll's that are updated without going through the whole publishing process again. 您可以手动更新任何已更新的dll,而无需再次完成整个发布过程。 You may need to make a minor change to your web config file after updating the dlls so as to trigger IIS to reload the latest dlls. 更新dll后,您可能需要对Web配置文件进行一些小的更改,以便触发IIS重新加载最新的dll。

you can change 你可以改变

<%@ page language="VB" autoeventwireup="false" inherits="test, App_Web_olnjngph" culture="bg-BG" uiculture="bg-BG" %>

with

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test"  Culture="bg-BG" UICulture="bg-BG" %>

and edit source code after that inside file test.aspx.vb 并在内部文件test.aspx.vb之后编辑源代码

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

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