问题描述
尝试托管网站时,页面后面代码中的业务对象出现错误
这是我在页面后面的代码中的代码.
I am getting error at business object in code behind page while try to host website
This is my my code in code behind page.
Bal objb = new Bal();
b.UserName = TextBox1.Text;
b.Password= TextBox2.Text;
b.Insert_Data(b);
在上面,我在"Bal objb = new Bal()"时遇到错误,例如找不到类型或名称空间名称"Bal"(您是否缺少using指令或程序集引用?).
Bal是一个类文件,我将其放在app_code文件夹中.
这是3层网路应用程式.所以,我不知道我在哪里做错了.所以,请提早给我建议.
In above i''m getting error at ''Bal objb = new Bal()'',like The type or namespace name ''Bal'' could not be found (are you missing a using directive or an assembly reference?).
Bal is a class file and i placed it in inside of app_code folder.
This is 3-Tier web application.so,i don''t know where i did mistake.So,please give me suggestion as early as possible.
推荐答案
这篇关于尝试托管网站时,页面后面代码中的业务对象出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!