I know silly question but i tried looking it up on Google with no luck.
views:
332answers:
2
+3
A:
Add an Inherits
attribute to your <@Page
directive with the name of the class represented in the cs file. For example:
<@Page ... Inherits="MyNamespace.MyCustomPage">
Jason
2009-09-10 17:31:41
A:
Hi,
As Jason has already answered, also put a "CodeFile=anycodefile.cs" in the page directive.
<@Page ... Inherits="MyNamespace.MyCustomPage" CodeFile="MyCustomPage.cs">
If your page has a code-behind file, use the CodeFile attribute. Otherwise put the assembly containing the code behind class in the bin folder and use the inherits. The class must derive from webpage or usercontrol and must be public.
SharePoint Newbie
2009-11-01 12:44:22