inheriting an asp.net web control: "element <name> famous element"
i'm attempting emanate tradition calendar control inherits asp.net's built calendar user control.
the code-behind record control looks this:
public biased category weeklyeventscalendar : calendar
{
stable vacant page_load(object sender, eventargs e)
{
}
}
and compiles fine.
however, i try place tradition control an aspx page:
<%@ page language="c#" autoeventwireup="true" codefile="testbed.aspx.cs" inherits="testbed" %>
<%@ register src="usercontrols/weeklyeventscalendar.ascx" tagname="weeklyeventscalendar"
tagprefix="mvs" %>
<!doctype html open "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head1" runat="server">
<title>untitled page</title>
<link href="~/css/vitalsignsstylesheet.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div>
<mvs:weeklyeventscalendar runat="server" />
</div>
</body>
</html>
i warning 'element weeklyeventscalendar famous element. start there gathering blunder web site, web.config record missing.' attempting
i don't any arrange 'file found' blunder i have past i mis-typed plcae file.
when i try bucket aspx page browser, i blunder cs0115: 'asp.usercontrols_weeklyeventscalendar_ascx.frameworkinitialize()': suitable slight found override
which even some-more confusing, since nowhere formula i try interpretation such function.
this should unequivocally simple. where am i going wrong?
Comments
Post a Comment