PDA

View Full Version : Code behind needed?


renevazquez
03-07-2009, 05:00 PM
Why when I upload my pages without the code behind file, I get this error?


Server Error in '/' Application.

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: 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

wisemx
03-07-2009, 05:47 PM
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