Visual Studio "0 из 4 ошибок"
Я пытаюсь создать свой проект, и Visual Studio говорит мне, что у меня есть erros в моем проекте. В окне ошибки указано "0 из 4 ошибок". Где я могу найти эти ошибки?
Это проект, который я только что создал, поэтому единственный код С#, который у меня есть, выглядит следующим образом:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class StationCreate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
}
что по существу ничего. Тогда у меня есть этот файл, содержимое которого я скопировал из другого, что я сделал:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StationCreate.aspx.cs" Inherits="StationCreate" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.auto-style1 {
width: 100%;
}
.auto-style2 {
width: 761px;
}
.auto-style3 {
font-size: large;
}
.auto-style7 {
width: 950px;
}
</style>
</head>
<body style="text-align: center">
<form id="form1" runat="server">
<div draggable="false" class="container">
<table class="auto-style1">
<tr>
<td style="text-align: left" class="header">
<table class="auto-style1">
<tr>
<td class="auto-style7">
<asp:Label ID="TitleLabel" runat="server" Text="Station Creator" style="font-weight: 700; font-size:48pt; font-family:'Segoe UI'; text-transform:uppercase;"></asp:Label>
<br />
<asp:Label ID="StationIDLabel" runat="server" style="text-transform:uppercase;"></asp:Label>
</td>
<td style="text-align: left">
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<br />
<br />
<br />
<br />
<table class="auto-style1">
<tr>
<td class="auto-style2">
</td>
<td>
</td>
</tr>
<tr>
<td class="topTableCell">
<asp:Label ID="StatusLabel" runat="server" style="font-weight: 700" Font-Size="Large" ForeColor="Black">Select a JOB</asp:Label>
<br />
<br />
<asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"></asp:TextBox>
</td>
<td class="topTableCell">
<span class="auto-style3"> <br />
</span>
<asp:Button ID="GenerateButton" runat="server" Text="Generate" OnClick="GenerateButton_Click" Enabled="False" CssClass="button" Font-Size="XX-Large" ForeColor="Gray" />
<br />
<br />
<br />
<asp:Button ID="DashboardButton" runat="server" CssClass="button" Font-Size="XX-Large" ForeColor="White" OnClick="DashboardButton_Click" Text="Dashboard" />
</td>
</tr>
</table>
<br />
<div class="gridViewContainer">
</div>
<asp:Label ID="TestLabel" runat="server" Visible="False"></asp:Label>
</div>
</form>
</body>
</html>
Ответы
Ответ 1
Оказывается, у меня только что был установлен фильтр в списке ошибок. Глупая ошибка, но урок узнал!
EDIT:
Опцию фильтра в списке ошибок можно найти, нажав эту кнопку:
![fiter]()
Здесь он не выбран. Если он выбран, вы можете выбрать фильтрацию сообщений об ошибках/предупреждений на основе того, в каком проекте находятся ошибки. Отменив выбор (как на изображении выше), у вас не будет фильтра, и вы увидите все ошибки.