You have to compile (build) your project before viewing pages. That's why
you get that error.. it simply does not know where (or what) the base class
you're inheriting from is.
Also, the first line of your header should look something like (you use the attribute "Codebehind" instead of "src"):
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="/fchs/earlytrack/codebehind/admin/pages_security.vb" Inherits="cb_pages_security"%>
>Jayesh,
>
>The class is defined as follows:
>
>
>Public Class cb_pages_security : Inherits Page
>
>
>Any ideas?
>
>TIA
>
>Rex
>
>>Is cb_pages_security derived from Page object?
>>
>>>All,
>>>
>>>I have been tasked with putting a .Net application under a project in VS.Net. The ASPX and codebehind files are located in separate directories and the ASPX files are pathed to the CB file as follows:
>>>
>>>
>>>< % ERROR: @ Page Inherits="cb_pages_security" src="/fchs/earlytrack/codebehind/admin/pages_security.vb" LANGUAGE="VB" % >
>>>
>>>
>>>The error I get is:
>>>
>>>
>>>The file failed to load in the Web Form designer. Please correct the following error, then load it again: Visual Studio cannot open a designer for the file because the class within it does not inherit from a class that can be visually designed.
>>>
>>>
>>>How can I fix this problem?
>>>
>>>TIA
>>>
>>>Rex
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi