不是一個標籤名稱或文本框的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