Hello,
I have an .aspx file in a folder in the application folder. The aspx.cs file is located in the root application one level down like this:
root/folder1/file.aspx
root/file-in-folder.aspx.cs
I have declared the .aspx file and .aspx.cs file like this where I use: "../file-in-folder.aspx.cs". It is not underlined which means that it can find the aspx.cs file.
However when I go to code behind, the .aspx.cs file can't find the controls on the .aspx file. I wonder why this happens. Do I declare something wrong? (I need to have those 2 files like they are placed)
//.aspx file
<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyNameSpace._fileinfolder" ValidateRequest="false" Codebehind="../file-in-folder.aspx.cs" %>
//.aspx.cs file
namespace MyNameSpace
{
public partial class ...
Go to the complete details ...