dabbi2005 wrote: |
|
In Default.aspx codebehind I put: public partial class _Default : System.Web.UI.Page { ... }
And so set for the same Default.aspx page: <%@ Page Language="C#" MasterPageFile="~/masterpage.master" CodeFile="Default.aspx.cs" Inherits="_Default" DecorationImage="roses" %>
Well this stops me already at compilation level, VS says there is no such attribute defined!
|
|
This is where you strayed from my example.
First: You need to inherits from the baseclass:
public partial class _Default :
BaseClass
Second: You need to specify a CodeFileBaseClass attribute on your page directive:
<%@ Page .... CodeFileBaseClass="BaseClass" %>
--
Danny
disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.