Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

WebApi with various parameters, one of them is a list

Hi Friends,I'm developing a webapi application on .Net Core (Target Framework netcoreapp2.0). I've got a question about how work with parameters. The method to which the app will route must recieve two...

View Article


How to create custom PagedList?

Hello.I need to create a pager for my data in view and i have created it by using this tutorial : https://docs.microsoft.com/en-us/aspnet/core/data/ef-mvc/sort-filter-page?view=aspnetcore-2.0and some...

View Article


How to post or get data from or to a outer web api server in asp.net core...

I build a asp.net core razor page website  www.mywebsite.com/wx. There is a api server https://api.outerserver.com/server .When the outer api server post a xml data to mywebsitewww.mywebsite.com/wx...

View Article

Need Help Understanding Identity on Asp.net Core

HiI am still confused about all this Identity stuff. First I am still confused the difference between Roles, Policies/Claims. From what I read roles is the old way of doing stuff and was kept for...

View Article

Link to documentation on looping construct efficiencies in razor pages

I was reading a doc page at ms's site that showed several ways to enumerate collections in razor views while considering performance. The details compared foreach for for and had a hint on performance....

View Article


How to handle custom API response/output format in the best possible way

I'd like to create custom JSON format, that would wrap the response in data and would return Content-Type like "vnd.myapi+json" ? Currently I have created like a wrapper classes that I return in my...

View Article

Onion Architecture with .NET Core 2

Hi Devs,I implement Onion Architecture using this link:https://social.technet.microsoft.com/wiki/contents/articles/36655.onion-architecture-in-asp-net-core-mvc.aspxUntil now everything is ok, the...

View Article

Razor Pages - Multiple _layouts

Is there a way to set a layout in Razor pages based upon the domain the user used to navigate to the site. I would examine the domain name that brought the user to the site (multiple bindings will be...

View Article


HMACSHA256 not hasing the same in Core and in standard library

Hi,I have a library made with Standard 2.0 framework which create a http request with an API key authaurization header using HMACSHA256.I have the same decoding code in a ASP.NET Core application and...

View Article


Include and exclude properties using interface

How to prevent update model from fiddler by using interface in model binding?

View Article

.Net Core 2.1, EF Core 2.1, and non entities

Hello,   Since trying to convert a site over to Asp.Net Core 2.0 I have run into this problem.  The viewmodels are not a DB set within the database so using FromSql to call the stored procedures would...

View Article

Net core Signalr video chat

Hi everyone!I have some students and I want to make video chat with net core and Signalr. All students is going to join room and dicuss about video. Notice the video is load from mp4  file and when...

View Article

Navigating to another page ASPNET Core 2.0

Hi,I want to navigate to another page from the Index page once the user is authenticated.  I'm getting an error though, "InvalidOperationException" because my Index page uses IndexModel while the page...

View Article


Image may be NSFW.
Clik here to view.

Nugget Package Missing

Hi, i'm new to ASP.NET or in web development in general and i'm trying to learn new things to add it on my resume. After installing VS and reading a few pages of the book PRO ASP.NET Core MVC 2 by Adam...

View Article

Um tipo de objeto global para ser acessado e setado de outras actions

Olá galera! Gente estou desenvolvendo um sistema simples apenas para fins de estudo. Bom o problema é o seguinte, na minha view layout eu passo com @model uma classe Header com duas propriedades,...

View Article


Modern web app MVC Core 2 : Pure JavaScript or Angular?

Starting from scratch in the development of a modern web app would you recommend developing using only JavaScript instead of Angular?For some time I have been developing some small project to learn how...

View Article

Radio button in HTML table cells using asp .net VB

I have a application which fetches data from database and displays the data on a ASP page using VB as follows. The function GetPageData() returns data from database in a table form.I now need to add...

View Article


VS2017 Angular template - angular & dotnet debug running on different ports

I hit F5 in VS 2017 and it starts the angular ClientApp portion on one port and the API portion on a different port.  For example, the launchSettings.json file says to use 58504 so the dotnet api...

View Article

Can service layer duplicate repository logic in this case?

Technically anything CRUD is work for repository. But what if I return DTOs will this be correct use case for service to duplicate repository CRUD logic?

View Article

Using a new folder for each deployment in IIS causes asp.net core cookies to...

Hi,When we deploy a new version of our app we like to deploy to a new folder each time.e.g.C:\mysite\1.0.0\webthenC:\mysite\1.0.1\webThe final part of the deployment process updates the IIS site to set...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>