Hello Charlie,
Thanks for posting in the group.
Based on your description, it seems that VS.NET IDE can't find myApp.main
when compiling your project.
Generally speaking, "Inherits" attribute identifies the class from which
the page derives. In Visual Studio, this points to a class in the project
assembly (.dll), as shown in the diagram above.
I tested it on my side as you described. Here are my testing steps:
1) Create a web application on local machine named WebApplication2.
2) The Page directive of default web form WebForm1.aspx is:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication2.WebForm1" %>
3) Create a subfolder named NewFolder1 by right click project
name(WebApplication2)->Add->New Folder in Solution Explorer.
4) In the subfolder, create a new web form named Webform1.aspx also.
5) The Page directive of WebForm1.aspx in the subfolder is:
<%@ Page language="c#" Codebehind="WebForm1.aspx.cs"
AutoEventWireup="false" Inherits="WebApplication2.NewFolder1.WebForm1" %>
So I think you may need to change Inherits attribute to
"myApp.SubFolderName.main"
If the problem still can't be resolved, could you please post here step by
step how you create this asp.net web application here? So we could tell
which step may contain errors.
If there is anything unclear, please feel free to post here. Thanks.
Best regards,
Yanhong Huang
Microsoft Community Support
Get Secure! ¨C
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.