aspx.cs 和 aspx.designer.cs 在哪里

发布于 2024-11-14 18:07:24 字数 861 浏览 6 评论 0原文

我从一个不再可用的人那里获得了一个网站。在部署的文件夹中,我有 Config.aspx (请参阅代码)。但我找不到代码隐藏文件。配置页面有效。在哪里可以找到 .cs 文件?

谢谢

<%@ page language="C#" masterpagefile="~/Master/StaffPortal.master" autoeventwireup="true"
    inherits="Admin_Config" title="Configuration" codebehind="Config.aspx.cs" %>

<asp:content id="Content1" contentplaceholderid="PageBody" runat="Server">
    <div style="width: 405px; height: 25px" class="GeneralCaption">
    Configuration Parameters
    </div>
    <asp:Table ID="Table" runat="server" Style="width:100%">
    </asp:Table>
    <asp:Button ID="OKButton" runat="server" CssClass="GeneralButton" Text="OK" OnClick="OKButton_Click" />
    <asp:Button ID="CancelButton" runat="server" CssClass="GeneralButton" Text="Cancel" OnClick="CancelButton_Click" />
</asp:content>

I have inherented a web site from someone who is not available any more. In the deployed folder I have Config.aspx there (please see the code). But I can not find the codebehind file. The config page works. Where can I find the .cs files?

Thanks

<%@ page language="C#" masterpagefile="~/Master/StaffPortal.master" autoeventwireup="true"
    inherits="Admin_Config" title="Configuration" codebehind="Config.aspx.cs" %>

<asp:content id="Content1" contentplaceholderid="PageBody" runat="Server">
    <div style="width: 405px; height: 25px" class="GeneralCaption">
    Configuration Parameters
    </div>
    <asp:Table ID="Table" runat="server" Style="width:100%">
    </asp:Table>
    <asp:Button ID="OKButton" runat="server" CssClass="GeneralButton" Text="OK" OnClick="OKButton_Click" />
    <asp:Button ID="CancelButton" runat="server" CssClass="GeneralButton" Text="Cancel" OnClick="CancelButton_Click" />
</asp:content>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

流年里的时光 2024-11-21 18:07:24

如果项目已部署,则所有 .cs 文件都已编译为 bin 文件夹中的 .dll 文件。
您需要有项目源才能访问它们。

if the project is deployed then all .cs files are already compiled into .dll file in bin folder.
You need to have the project source to access them.

携余温的黄昏 2024-11-21 18:07:24

如果您在任何地方都找不到它们,并且需要从 DLL 中获取 cs 文件 - 操作方法如下:

通过 redgate 获取 Reflector,安装此插件: http://www.denisbauer.com/NETTools/FileDisassembler.aspx

将 DLL 拖入 Reflector,然后使用反汇编丹尼斯的插件。文件背后的所有代码将从 DLL 中提取,不幸的是注释将丢失。

更新

这些天我使用免费工具ILSpy,您可以简单地将程序集另存为项目 - 它将整个项目转换为不同语言的好方法。

If you cant find them anywhere and you need to get the cs files out of the DLL - here's how:

Get Reflector by redgate, install this add-in: http://www.denisbauer.com/NETTools/FileDisassembler.aspx

Drag the DLL into Reflector then dissemble it using Denis's add-in. All the code behind files will be extracted from the DLL, unfortunately comments will be missing.

UPDATE

These days I use the free tool ILSpy and you can simply save assemblies as projects - its a great way to convert entire projects to different languages.

薔薇婲 2024-11-21 18:07:24

如果这是已发布的文件夹,则代码隐藏页面将被编译到 bin 文件夹中的 .dll 中。获取代码的唯一方法是获取源项目

If this is the published folder, the codebehind pages would have been compiled into a .dll in the bin folder. The only way to get the code behind would be to get the source project

忆悲凉 2024-11-21 18:07:24

当我们发布 Web 应用程序时,文件背后的代码会编译为存储在 bin 文件夹中的 dll

您必须从开发人员处获取源文件。

When we publish a web application, the code behind files are compiled into dll's that are stored in a bin folder.

You have to get the Source files from the Developer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文