不是一个标签名称或文本框的ID我收到了许多这样的错误作为收到错误有关的上下文
The name 'lblThankYou' does not exist in the current context
然而,asp.net代码有“lblThankYou”作为标签名称
<asp:Label ID="lblThankYou" runat="server" Visible="False" Font-Bold Font-Size ="Medium" ><table><tr><td>Thank you for submitting your request. We will respond the following business day.
For immediate assistance, please call us at 1-800-xxx-xxxx.</tr></table></asp:Label>
然而,当我尝试预览在浏览器中的文件,我得到这个
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'xxxxxxxxxxxxSolution2010.Signup3'.
Source Error:
Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageLicensing.master" AutoEventWireup="true" CodeBehind="Signup3.aspx.cs" Inherits="xxxxxxxxxxxSolution2010.Signup3" %> Line 2: Line 3:
Source File: /Signup3.aspx Line: 1
奇怪的是与c颂歌是那里的网页,我试图重建它解决它,但无济于事
我使用ASP.net 4.0和Visual Studio 2010,是否可以帮助
如果您正常运行Web应用程序(使用F5),会发生什么情况? – ibram 2011-05-12 19:21:43