我已将一个类放在App_Code文件夹中,因此应该可以访问我的所有源文件。智能感知确实看到类(代码隐藏),但是当我运行在浏览器的网站,我得到一个编译错误: **Compilation Error**
Description: An error occurred during the compilation of a resource required to service this reque
如何在app_code的类中设置母版页中的属性?用asp.net C# 我的母版页: private int styleGroup;
public int StyleGroup
{
get { return styleGroup; }
set { styleGroup = value; }
}
如何设置我从样式组在App_Code类? 这样的事情,但它不工作:
我正在研究一个asp.net web应用程序,并且我的app_code中有几个类,但出于某种原因,我无法使用任何他们在我的代码中。我尝试使用相同的命名空间,我试图在两个文件中没有任何命名空间,但没有任何帮助。 这是我的网页代码: using System;
using System.Collections.Generic;
using System.Linq;
using System.We