Demonstration of RDLC report with search and passing parameters (ASP. net mvc)

Source: Internet
Author: User

Last night I demonstrated the "ASP. NET MVC application show RDLC Report" http://www.cnblogs.com/insus/p/3665295.html RDLC report. In the implementation process, there are many problems that can be solved one by one. However, this article only displays all records on the RDLC report. As some netizens have said, can a report with a search record function be made. Therefore, Insus. NET tries to implement it in the following process.

With the previous experience, it should be difficult to do it.

 
Create a stored procedure in the database:

 

This stored procedure has three parameters. Later, Insus. NET sends the values to the RDLC report.

Under the Entities directory, locate and open FruitEntity. cs and add the following method:

 

Next, we create RDLC report, detailed can refer to the previous article ASP. net mvc application to show RDLC report, http://www.cnblogs.com/insus/p/3665295.html is just a complete state.

 

 

Because this article involves parameter issues, you need to input parameters for RDLC. Therefore, when designing a report, you should also add relevant parameters, such as the highlighted place of yellow. Create a parameter in RDLC. For example, column:


Specify the parameter name and two options:

 

The other two parameters KindName and FruitName are added in the same way as CategoryName.

 

In the AspNets directory of the application, create An aspx webpage:

 

The following ButtonSR click event:

 

Create an operation on the controller:

 

Create a view

 

Real-time Demonstration:

 

 

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.