我继承了一个我知之甚少的网站。我使用过 asp.net/C# 网站,但这似乎有所不同。没有代码可以让我设置断点并单步执行。也找不到程序中的几个引用。我的一般问题是:如何在 Visual Studio 中调试此程序?
与此示例代码相关的具体问题:
- 我在哪里设置我的断点?
- 当用户单击提交按钮时,此示例中会发生什么?
该程序继承“Company.Program.SystemLogin”。我在任何代码中都找不到该类。为什么不,我如何找到它?
<%@ 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>