I am getting a number of errors such as
The name ‘lblThankYou’ does not exist in the current context
However the asp.net code has the ‘lblThankYou’ as a label name
<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>
However when I try to preview the file in the browser I get this
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
The odd thing is the code is there in the page and I tried rebuilding it to fix it but to no avail
I am using ASP.net 4.0 and visual studio 2010 if that helps
Well the way I fixed it was by creating a new code file and copying the existing code on to it and saving it with the same old file name.
That fixed the issue