Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASPX & Codebehind in separate directories
Message
 
To
14/08/2002 08:59:08
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00689313
Message ID:
00689553
Views:
26
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.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform