Forum Moderators: open

Message Too Old, No Replies

Problems with the calendar control

         

timchuma

1:30 am on May 27, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



The usual story, the same code and setup as a similar application to display events on the calendar does not work in this case.

More specifically:
Parser Error Message: Could not load type 'calendar_.default'.

Source Error:
Line 1: <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="calendar_.default" %>

I don't understand why it would work in one application and not another when everything else is virutally indentical.

Thanks.

Ossifer

11:36 am on Jun 1, 2005 (gmt 0)

10+ Year Member



Do you have the file default.aspx.cs?

If so, does it start with/contain the line

public class default : System.Web.UI.Page

timchuma

12:07 am on Jun 2, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



Yes, it has this line:
public class _default : System.Web.UI.Page

(you can't use "default" as a name though for some reason.)

Thanks.

Xoc

4:52 pm on Jun 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Line 1: <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="calendar_.default" %>

This line is wrong.

It has the underscore before the period, when it should be after.

Inherits="calendar._default"

is what you want.

timchuma

10:55 pm on Jun 15, 2005 (gmt 0)

10+ Year Member Top Contributors Of The Month



I tried what you suggested, it is still giving me the same error:
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 'calendar._default'.

Source Error:
Line 1: <%@ Page language="c#" Codebehind="default.aspx.cs" AutoEventWireup="false" Inherits="calendar._default" %>