I'm trying to build my project and Visual Studio tells me I have erros in my project. The error window says it's listing "0 of 4 errors". Where can I find these errors?
This is a project that I've just created, so the only C# code I have is as follows:
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)
{
}
}
which is essentially nothing. Then I have this file, the contents of which I copied from another I made:
<%@ 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>
Use Quick Actions to fix or refactor code They are an easy way to fix common warnings quickly and effectively in C#, C++, and Visual Basic code. To access them, right-click on a warning squiggle and select Quick Actions and refactorings.
To display the Error List, choose View > Error List, or press Ctrl+\+E.
Suppress specific warnings for Visual C# or F# In Solution Explorer, choose the project in which you want to suppress warnings. Right-click on the project node, and choose Properties on the context menu. Or, select the project node and press Alt+Enter. Choose Build, and go to the Errors and warnings subsection.
Go to Menu Bar . Click on File -> Preferences -> Settings. On the top right corner of the Settings tab, click on the 3 dots button -> Show Modified Settings.
It turns out that I just had a filter set on the error list. A silly mistake, but lesson learned!
EDIT:
The filter option on the error list can be found by clicking this button:
Here, it is not selected. If it is selected, you can choose to filter error messages/warnings based on which project the errors are within. By deselecting it (as in the image above), you will have no filter and you should see all errors.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With