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

Get all users with a specific role in ASP.NET Core 2.0

I'm just getting started with porting a application from ASP.NET MVC 5 to ASP.NET Core 2.0 (with EF Core and Identity). All has been going smooth, but I've ran into a problem that I can't seem to find...

View Article


how to set left and right margin as 0 to display the image fully inside the...

I am trying to create a new project using asp.net mvc template.  In this tmplate , How can   I  set the right margin and left margin  of the following div as set to 0.  The banner image should be...

View Article


Can't get OnPost to work with Razor Pages

I'm trying to get a form submit to work with Razor Pages. It never hits my OnPost() routine. I stubbed in an OnGet() method temporarily and it executed. Stumped as to why the OnPost doesn't work. Code...

View Article

How to Insert a Home Page in Front

I'm learning MVC Core 2 from a book by Apress, and the sample project is for a store.I wrote the whole thing successfully, where the initial page on startup is the store.(The _ViewStart and _Layout are...

View Article

Image may be NSFW.
Clik here to view.

dbContext Error

I am currently learning bits and pieces with ASP.NET Core. But I am struggling to get to the bottom of an error I am receiving and feel I may have missed something, but do not know what. This error...

View Article


ASP.NET Core 2.0 works in IIS Express, no web page when published to Azure

So I'm getting acquainted with ASP.NET Core 2.0 (not 2.1 preview). I'm using MithrilJS as a frontend. I've got a nice little sample site working in IIS Express but when I publish to Azure...

View Article

Is there a secure way to pass login and password to an IdentityServer API for...

I would like to have a user be able to have their login information sent to an IdentityServer API for authentication, and then have the IdentityServer API authenticate, and pass the token back to my...

View Article

Expression.Or with multiple parameters

Hello,I want to build a linq/ef expression tree.I need to make an Or between multiple binaryexpressions.Expression.Or, Expression.OrElse takes only 2 arguments.If i combine multiple Expression.Or, a...

View Article


What is the best practices way of setting up a default route with Core 2?

What is the best practices way of setting up a default route with Core 2?

View Article


Cannot Append to cookie in ASP.NET Core 2.0 MVC

Hello,I am trying perform a very simple actionusing System; using System.Collections.Generic; using System.Linq; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; var mtaUserCookie =...

View Article

.NET CORE and MVC

Isnt CORE 2 supposed to be the latest preferred way to do web pages ? I read articles how CORE 2 is supposed to solve DLL hell. So, I think - lets do CORE 2But when I use...

View Article

.NET Core cross platform Database Drivers for Oracle, DB2

Should Microsoft start developing their own drivers for Oracle, DB2.I work in an Organization where we use Oracle and DB2...We have lot of interest for ASP.NET Core/.NET Core but the problem is that...

View Article

Unhandled exception on basic db.Query() Token: b77a5c561934e089

I know this issue has been covered before, but after nearly 10 hours of reading other posts, documentation and trials, I am at a loss. I am new to .Net and C# so I apologize if this is trivial to...

View Article


Download file from other server to users system

Hello.Let me explain my problem :I am using ASP.NET Core 2 and developing a site for download file.I have a site on Server A and my files are on Server B that are not in site server (my site is on...

View Article

Context.add not saving to database

Hi,I have a controller which needs to pull the data from the form and add to database. I've done this numerous times before, but for some reason on this specific section of code it will not save at...

View Article


download large files from external server

Hello.I have a download site that user can register and pay for download(user should pay for subscription then download any files).My files locate on other download server that it maps to my site...

View Article

Image may be NSFW.
Clik here to view.

How to work on user permission .net core mvc

I am working on HR employee module and i am stuck in user permission authoraziation and dont know how its gonna done. I have attached image for example. If someone help to build something like that for...

View Article


Deploying views

I have just started working with core 2.It appears that views are precompiled now, so when you deploy you are not actually moving a view folder and cshtml file now?I don't mind, though sometimes it is...

View Article

ArgumentException with BuildWebHost - .Net core 2.0

That's the way I've added what has been made in this article, it makes me mistake every time I try to run the website.i have make this here:System.ArgumentException: 'Cannot instantiate implementation...

View Article

Advantages of Razor Pages?

Hi, i'm reading and trying out the new razor pages, but I see no particular advantages in using this feature. What are your thoughts and am I wrong on this:1) Razor pages are not easier to make or...

View Article
Browsing all 9386 articles
Browse latest View live


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