求教一个很神奇的问题。
小弟用VS2008编写了一个页面,然后用MVC的模式读取数据,但是在页面中出现一句话:现用语言不支持(方法名),请问这个是什么情况,急! --------------------编程问答-------------------- 估计是传参数的问题吧 --------------------编程问答-------------------- 你能贴点代码出来看看吗?--------------------编程问答-------------------- 页面后台写的
protected void Page_Load(object sender, EventArgs e)
{
ExhibitorsBLL exBLL = new ExhibitorsBLL();
ExhibitorsDL.DataSource = exBLL.ExhibitorsGetAll();
ExhibitorsDL.DataBind();
}
BLL层
public List<Exhibitors> ExhibitorsGetAll()
{
//List<Exhibitors> lex = CurrentDataAccess.ExhibitorsGetAll();
List<Exhibitors> lex=new ExhibitorsDA().ExhibitorsGetAll();
if (lex != null)
return lex;
return null;
}
DA层
public List<Exhibitors> ExhibitorsGetAll()
{
ReturnValue rv = new ReturnValue();
List<Exhibitors> le = new List<Exhibitors>();
try
{
le = (from ex in DataContext.Exhibitors select ex).ToList<Exhibitors>();
}
catch (Exception e)
{
rv.ResultType = ReturnResultType.Error;
rv.Message = e.Message;
Logging.WriteLog("Doxt.CONS.DataAccess.News.ExhibitorsDA.ExhibitorsGetAll", LogCategory.DataAccessEvents, e);
}
if (rv.HasError)
{
return null;
}
return le;
}
logging是写日志的! --------------------编程问答-------------------- 顶; --------------------编程问答-------------------- 顶下 --------------------编程问答-------------------- 还用到泛型了
看到泛型就头大 --------------------编程问答-------------------- 不清楚
补充:.NET技术 , ASP.NET