L
Leo
I would like to create a base page with some code and server controls on it and then inherit that page in all my other pages. I have tried in the codebehind changing
Inherits Systgem.Web.UI.Page
to
Inherits myBasePage
and in the HTML for the page.aspx changing
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestForm.aspx.vb" Inherits="InheritanceText.TestForm"%>
to
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestForm.aspx.vb" Inherits="InheritanceText.myBaseForm"%>
I would like the page that is inheriting from myBaseForm to inherit all the visual and server controls also. Is this possible in VS 2003 and if so what do I need to do?
Inherits Systgem.Web.UI.Page
to
Inherits myBasePage
and in the HTML for the page.aspx changing
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestForm.aspx.vb" Inherits="InheritanceText.TestForm"%>
to
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestForm.aspx.vb" Inherits="InheritanceText.myBaseForm"%>
I would like the page that is inheriting from myBaseForm to inherit all the visual and server controls also. Is this possible in VS 2003 and if so what do I need to do?