类的静态方法无法引用,namespace不生效?!!!
我在app_code中加入一個class,命名為MyTools.cs,類名為MyTools,其中有一public static void方法:writeText(string str)
namespace=Amtec
在同一項目的login.aspx,的login.aspx.cs代碼中,使用Mytools.writeText('MM GG');
居然提示:
错误 72 当前上下文中不存在名称“MyTools” C:\Documents and Settings\lqh\桌面\amtec\web\job\login.aspx.cs 35 38 Amtec