Code behind needed?

Discussion in 'General troubleshooting' started by renevazquez, Mar 7, 2009.

  1. Why when I upload my pages without the code behind file, I get this error?


    Server Error in '/' Application.

    Parser Error

    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]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: The file '/Qhacemos.aspx.cs' does not exist.

    Source Error:

    Line 1: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Qhacemos.aspx.cs" Inherits="Qhacemos" %>Line 2: Line 3: <%@ Register Src="Controls/Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
    Source File: /qhacemos.aspx Line: 1


    Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082 [/FONT]
     
  2. The code-behind is needed if you created the page with it.
    When you create a new page you do not have to use code-behind.
    Personally I think shared hosting is better off without code behind.
    Salute,
    Mark
     

Share This Page