如何绑定详细信息视图并返回一个类对象?
Dim _obj As New NewRequestDetailsBL
_obj = NewRequestDetailsBL.SelectRequestDetails(Session("requestid"),
Session("contactid"))
dvAdmin1.DataSource = _obj ' this line is giving the error
dvAdmin1.DataBind()
错误:
System.InvalidOperationException: Data source is an invalid type.
It must be either an IListSource, IEnumerable, or IDataSource.