首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

表现层没法调用BLL层的类?(用的vs2012)

2013-03-01 
表现层无法调用BLL层的类??(用的vs2012)表现层已添加bll的引用,但是写网页后台的时候无法调用BLL层的类,这

表现层无法调用BLL层的类??(用的vs2012)
表现层已添加bll的引用,但是写网页后台的时候无法调用BLL层的类,这是怎么回事啊??,以前都可以正常用的?
bll层代码如下:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAl;

namespace BLL
{
    public static class UserRoleBLL
    {
       public static List<UserRole> GetAll()
       {
           return UserRoleDAL.GetAll();
       }

    }
}

网页代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;


public partial class myweb : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
            binddata();
       
    }

    private void binddata()
    {
        GridView1.DataSource = UserRoleBLL.GetAll();/编译报错,显示上下文中不存在“UserRoleBLL”
        
    }
}
[解决办法]
dll引入了吗,就是找不到那个类的声明

热点排行