How to use Devexpress report in Asp.Net MVC 4 Web Application(Not DXperience v12.2 ASP.NET MVC Web Application ) - asp.net-mvc-4

I want to use Devexpress 12.2 xtrareport in Asp.Net MVC 4 Web Application.Now i think you will suggest me Create an ASP.NET MVC Application and Add a Report to It but in this they are using DXperience v12.2 ASP.NET MVC Web Application and i am using Asp.Net MVC 4 Web Application.
Is this possible ?

This is the solution which i find out :
1.)Please review the How to: Manually Register DevExpress Extensions to Start Using Them in an MVC Web Application documentation article to learn how to register DevExpress ASP.NET MVC extensions manually.
2.)This way, you will be able to create a reporting application using the approach from the
Create a Basic Report in ASP.NET MVC documentation article.

Related

Can I have asp.net core mvc and web api as single project

We want to build an asp.net core web application. it contains MVC part for returning Views and API to return JSON and have Restful services for our web application.
So can I have MVC and Web API inside the same project? as currently when i want to create a new project inside .NET 6.0 i have to select the either MVC or Web API type :-
So can I have MVC and Web API inside the same project? as currently when i want to create a new project inside .NET 6.0 i have to select the either MVC or Web API type :-
Certainly you can. What all you need is, you should have one solution. Furthermore, within the solution, you ought to create two project. One for MVC application and another for Web API application. Here is the simulation how you can achieve that:
Project Architecture Would be Like:
If you want to run two project together:
Go to your solution and right click on it
Select Property
Choose Multiple Startup Project

Mdbootstrap integration with asp.netcore mvc application

I have purchased mdbootstrap pro for multiselect control and want to use it in my asp.net core mvc application. How can I integrate this?

Can we write the .net core WebAPI in the asp.net core razor web page itself?

I have the following projects in my solution all .net core 5.0.
myproject.domain
myproject.infrastructre
myproject.webAPI
myproject.UI.Razorweb page.
Instead of using SPA which calls the webAPI, I am using razor web page which will call the webAPI(.net 5.0). My question is can we merge the webAPI and the razorwebpage into one? Can we write webAPI in the razor web page itself?
Is that allowed?
I agree with the suggestion given by Jeremy.
You should have a web API and Razor project separate.
Besides, if you would like to make some tests then you could refer to the articles below.
Use Razor Pages, MVC, And Web API In A Single ASP.NET Core Application
Hosting ASP.NET Core Razor Pages and Web APIs in a Single Project
Razor pages and webapi in the same project

Feed Reports from ASP .NET API to an ASP .NET Core app

Is it possible to feed reports to my asp net core application using a simple Web API in .net framework? Since there's basically no solution for reportings in ASP .NET Core and we rely mostly on Crystal Reports, I was wondering if this is possible
It may be a bit difficult that if you directly reference asp.net web api in asp.net core due to the framework between asp.net and asp.net core is completely different .
If you want to create reports in ASP.NET Core , you could try a third party solution as a supported product:
https://www.syncfusion.com/reporting-tool/aspnet-core/report-viewer
And not quite sure about your report output format, if you try to generate PDF output, as alternative you may use wkhtmltopdf (command line tool) to for this purpose , you could refer to here for more details.
Another discussion on the report in asp.net core ,you also could refer to .

Before save model in ASP.NET MVC 4

When I wrote web applications in Rails, it was very easy to control events like before_action, before_save. How to use they in ASP.NET MVC 4?