Implementing the RDLC report presentation in the MVC View (supplemental)

Source: Internet
Author: User
Previous: Implementing RDLC Report display in MVC view

In the last pass, Since I do not know how to instantiate the IxxxAppService.cs interface of the ABP in the aspx.cs background, I have taken the view page to store the queried data in a hidden domain of aspx, then get it in the Aspx.cs background event and assign the value to the ReportViewer control.

This approach actually affects performance, the query data will be stored and converted to the page many times, and when the amount of data is large, the page will not load the data.

I didn't know it later. The ABP framework actually provides a global approach specifically for acquiring the current set of IOC containers and finding instance objects through the incoming interface generics. The code is as follows:

var obj = abp.dependency.iocmanager.instance.resolve<ixxxappservice> ();

Among them, Ixxxappservice for its own API interface class.

My code reference in this project is as follows:

var _dbserver = abp.dependency.iocmanager.instance.resolve<idbserverappservice>= _ Dbserver.executegettable (Dbserid, SQLSTR);

Implementing the RDLC report presentation in the MVC View (supplemental)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.