Getting Started With ASP.NET Core 2.0 Identity And Role Management In the previous article, we have discussed in detail about how to use ASP.NET Core Identity in MVC Application for creating user roles and displaying the menu depending on user roles. The ASP.NET Core Module is a native IIS module that plugs into the IIS pipeline to either: Host an ASP.NET Core app inside of the IIS worker process ( w3wp.exe ), called the in-process hosting model. Forward web requests to a backend ASP.NET Core app running the Kestrel server, called the out-of-process hosting model.
This package has no dependencies.
NuGet packages (283)
Showing the top 5 NuGet packages that depend on Microsoft.AspNet.Identity.Core:
| Microsoft.AspNet.Identity.Owin |
Owin implementation for ASP.NET Identity.
| Microsoft.AspNet.Identity.EntityFramework |
ASP.NET Identity providers that use Entity Framework.
| UmbracoCms.Core |
Contains the core assemblies needed to run Umbraco Cms. This package only contains assemblies and can be used for package development. Use the UmbracoCms package to setup Umbraco in Visual Studio as an ASP.NET project.
| Abp.Zero |
| IdentityServer3.AspNetIdentity |
ASP.NET Identity support for IdentityServer3
GitHub repositories (89)
Showing the top 5 popular GitHub repositories that depend on Microsoft.AspNet.Identity.Core:
| xamarin/xamarin-forms-samples |
Sample apps built using the Xamarin.Forms framework
| umbraco/Umbraco-CMS |
The simple, flexible and friendly ASP.NET CMS used by more than 730.000 websites
| pnp/PnP |
SharePoint / Office 365 Developer Patterns and Practices - Archived older solutions. Please see https://aka.ms/m365pnp for updated guidance
© Microsoft Corporation. All rights reserved.
I used to export data to excel in asp.net mvc using below code
When this Code Run it create a file and ask for a location to save
I tried working with NPOI and create Excel file very well but cant save file on client location .
Is there any way to make above code works on asp.net core 2.0 or any other way where I can save data in excel format on client machine ?TanwerTanwer
There are many ways to achieve that.
Option 1: save to wwwroot
You can generate the Excel and save it to the
wwwroot folder. And then you can serve it as static content on the page.
For example you have a folder called 'temp' inside the
wwwroot folder to contain all the newly generated excels.
There are limitations on this approach. 1 of them is the new
download attribute. It only works on modern browsers.
Option 2: byte array
Another way is to generate the Excel, convert it into byte array and send it back to the controller. For that I use a library called 'EPPlus' (v: 4.5.1) which supports .Net Core 2.0.
The following is just some sample codes I put together to give you an idea. It's not production ready.David LiangDavid Liang
Agreed with David Liang's answer.
Slide modifications if want to export whole DataTable.
Here is our solution to this:
More information on EPPlus is available here and the source code above can be found at our open source repo (GPL).Chaim EliyahChaim Eliyah