How do I make ObjectDataSource work with singleton Business object?
My singleton business object is defined in Global:
pub开发者_如何学Golic class Global : HttpApplication
{
public static BusinessForm BusinessFormLayer;
void Application_Start(object sender, EventArgs e)
{
FormDalProvider concreteProvider = FormDalProvider.Instance;
BusinessForumLayer = new BusinessForum(concreteProvider);
}
}
My page:
<asp:ObjectDataSource ID="objThreads" runat="server"
SelectMethod="GetForms"
SelectCountMethod="GetFormsCount"
TypeName="Global.BusinessFormLayer"
EnablePaging="true"
SortParameterName="sortExpression">
精彩评论