如何调试没有code后面一个asp.net程序? [英] How do I debug an asp.net program without code behind?

查看:114
本文介绍了如何调试没有code后面一个asp.net程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个网站,我知之甚少。我和asp.net/C#网站的工作,但是这似乎是不同的东西。有背后我把一个破发点,并通过它一步没有code。此外,在节目数refernces无法找到。我一般的问题是:我如何调试这个程序在Visual Studio

I inherited a web site that I know little about. I've worked with asp.net/C# websites, but this seems to be something different. There is no code behind for me to put a break point and step through it. Also several refernces in the program can't be found. My general question is: How do I debug this program in Visual Studio?

有关此示例code Specifc问题:

Specifc questions related to this sample code:


  • 我在哪里把我的破发点?

  • 在此示例中,当用户点击提交按钮会发生什么?

  • 该计划秉承Company.Program.SystemLogin。我找不到该类中的任何code的。为什么不和我怎么找到它?

  • Where do I put my break point?
  • What happens in this sample when a user clicks the submit button?
  • The program inherits "Company.Program.SystemLogin". I can't find that class in any of the code. Why not and how do I find it?

 <%@ Page Language="vb" AutoEventWireup="false" Inherits="Company.Program.SystemLogin" %>
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML>
  <HEAD>
  <title>Company CMS</title>
  <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
  <style>
  BODY { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica, sans-serif; BACKGROUND-COLOR: #ffffff }
   INPUT { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Helvetica, sans-serif }
   TEXTAREA { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Helvetica, sans-serif }
   SELECT { FONT-SIZE: 11px; COLOR: #000000; FONT-FAMILY: Verdana, Helvetica, sans-serif }
    TD { FONT-SIZE: 11px; FONT-FAMILY: Verdana, Helvetica, sans-serif }
   .red { FONT-WEIGHT: bold; COLOR: #851205 }
   .orange { FONT-WEIGHT: bold; COLOR: #e05e02 }
   .message { FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #e05e02 }
   </style>
   </HEAD>
   <body onload="document.getElementById('txtUsername').focus();">
   <form id="Form1" method="post" runat="server">


            <table width="400" cellpadding="3" cellspacing="3" align="center">
                <tr>
                    <td colspan="2" align="center"><img src="images/pcms.jpg" alt="Company CMS"></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><asp:Label ID="lblMessage" Runat="server" CssClass="message">PLEASE LOGIN</asp:Label></td>
                </tr>
                <tr>
                    <td align="right" class="red">Username</td>
                    <td><asp:TextBox ID="txtUsername" Runat="server" />
                        <asp:RequiredFieldValidator ID="rUsername" Runat="server" ControlToValidate="txtUsername" Text="*" Font-Bold="True"
                            Display="Dynamic" ForeColor="#E05E02" /></td>
                </tr>
                <tr>
                    <td align="right" class="red">Password</td>
                    <td><asp:TextBox ID="txtPassword" Runat="server" TextMode="Password" />
                        <asp:RequiredFieldValidator ID="rPassword" Runat="server" ControlToValidate="txtPassword" Text="*" Font-Bold="True"
                            Display="Dynamic" ForeColor="#E05E02" /></td>
                </tr>
                <tr>
                    <td align="right" class="red"><asp:label id="lblconn" Runat="server" Visible="False">Connection:</asp:label></td>
                    <td><asp:DropDownList ID="conns" Runat="server" Visible="False">
                            <asp:ListItem Value=""></asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="2" align="center"><asp:Button id="btnSubmit" Runat="server" Text="Log In" CssClass="button" /></td>
                </tr>
            </table>

    </form>
</body>

推荐答案

如果你继承了无源$ C ​​$ C的应用程序,你必须在你前面一个严峻的挑战。

If you have inherited an application without source code, you have a tough challenge ahead of you.

您可以使用dotpeek或反射反编译的DLL,以重建源$ C ​​$ C,但这将是一项繁重的任务。

You could use dotpeek or reflector to decompile the DLLs in order to recreate the source code, but this will be an onerous task.

我的第一个停靠点是找出是否源$ C ​​$ C是可在任何地方。

My first point of call would be to find out if the source code was available anywhere.

这篇关于如何调试没有code后面一个asp.net程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆