I used Visual Studio 2010 yesterday to create a new .aspx form using the Installed Templates and selecting Web Form using Master Page .
Now, as you can see in the screen capture below, I have 4 errors on the page associated with the page directive that VS created.
Yesterday, I marked this up to Windows or Visual Studio needing to be restarted, but I kept working.
I shut the PC off when I went home, and everything loaded up fresh this morning, yet low and behold the error is still there.
Here is that first line with the page directive:
<%@ Page Title="Lawson MPRO AFE Detail" Language="C#" MasterPageFile="~/app.Master" AutoEventWireup="true" CodeBehind="AFE-details.aspx.cs" Inherits="spiderCS.pts.AFE_details" %>
Here are the errors (in case you can't read the screen capture):
Following Amit Joki's advice, I deleted the whole page and recreated it.
The problem returned.
However, Visual Studio 2010 will compile, debug and run the website still if I close the text so that the HTML in that file is not displayed.
Apparently, it is not a true bug in my code, but some kind of bug in the VS IDE.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.