Hey I am getting the following error
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the
Try changing CodeBehind:
<%@ Page Language="C#"
AutoEventWireup="true"
**Codebehind**="AddToCart.aspx.cs"
Inherits="_AddToCart" Title="Untitled
Page" %>
To CodeFile:
<%@ Page Language="C#"
AutoEventWireup="true"
**CodeFile**="AddToCart.aspx.cs"
Inherits="_AddToCart" Title="Untitled
Page" %>
ASP .NET 1.1 used CodeBehind for compiling code in a separate file. ASP .NET 2.0 introduced the CodeFile syntax for compilation of partial classes.
See here for a more detailed explanation.
Specify the namespace of the Inherits
property of Page
directive
Look at codebehind of your page. It looks like:
namespace MyWebSite
{
public partial class _AddToCart : System.Web.UI.Page
{
//...
}
}
So you must change Page
directive to:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="AddToCart.aspx.cs" Inherits="MyWebSite._AddToCart" Title="Untitled Page" %>