简体   繁体   中英

Updating an ASP.NET website backend code

It has been several years since I have really worked with ASP.NET C# but I have a client who needs to have a simple radio box added to a form which requires more then just editing the .ascx file.

I know that they have a custom .DLL file which I assume was compiled and then uploaded and contains the codebehind files?

The file has a code behind

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PFA_Form.ascx.cs" Inherits="FLR.Controls.Input.PFA_Form" %>

Does this mean that if I edit the PFA_Form.ascx.cs I will have to do more then just upload that file via FTP?

As far as I know it is a Web Application Project. I have the files and solution, but Visual Studio is not connected to the web server in anyway.

如果对后面的代码进行更改,则必须重新编译服务器端代码以创建新的DLL。

If you only had to make changes to the ascx page, then sure, you could edit it. In this case, you need to make changes to the codebehind as well, and in ASP.NET that requires you to recompile and use the new DLL.

If it's a ASP.net web site you can do it by just changing the code, it will be recompiled automatically. If it's an ASP.net web application you will have to compile and deploy it manually.

根据您所部署的内容,您还需要重新编译并获取新的.DLL,或者如果它是webapp,则需要右键单击发布的主项目,这将为您提供新的部署包。

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