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

How to create executable webapp asp.net core 2 without template?

Hello!In the documentation I see the command dotnet new mvc usage and then I have "Required assets to build and debug are missing from 'projectname'. Add them?" message. How can I answer No in this...

View Article


ASP.Net Web API Examples

I am trying to learn how to create ASP.Net apps, not only create them but create them the RIGHT way. Does anyone know of any fully functioning examples of mostly Web API's but anything ASP.Net would...

View Article


Cannot Resolve Middleware.UniqueURLRewriteRule Requires Scoped Service

<div class="post_body"> <div class="post entry-content">Background Of Issue I am creating an application that allows the user to register and upon registration generates a profile for them...

View Article

Update MS excel sheet(office 2010) through ASP.NET Core console application

I have to update cell values in an excel sheet( office 2010) through ASP.NET CORE Console application.I am looking for some dll/package from Microsoft. But most of the dll/package does not support...

View Article

How to update appsettings.json?

Hi, I have an ASP.NET Core 2.0 WebApp where I read my configuration settings from appsettings.json/appsettings.{EnvironmentName}.json. I have set the "reloadOnChange" flag to "true" for both my...

View Article


Encrypt Form Fields Without Intercepting Form Submit in Javascript.

Is their a clean way to encrypt all form fields or just some of the string fields without having to use Javascript.  A simple example would be the default example with Login Capability. The first Login...

View Article

How to delete self referencing table data using entityframework

I have a Category model with self reference public class Category { public int Id { get; set; } public string Title { get; set; } public int? ParentId { get; set; } public Category Parent { get; set; }...

View Article

ASP.NET Core Routing without MVC services

Hello all!How to use RouterMiddleware in Visual Studio Code with .NET Core 2? I don't see this package in the list.Thank you.

View Article


How to Post data in ASP.NET Core 2 Razor Pages

Hi All,I have created a simple ASP.NET Core 2 Razor Pages application. It adds two numbers and show result to the user.The problem is that I can't post the model to PageModel class. Can anyone help ?...

View Article


Render Asp.net core Razor page to string?

In Asp.net core 2 Razor pages, I want to render a Razor page with a model, and save it to a string. The intention is to send the string as an email (the rendered page is an invoice). I found this for...

View Article

Image may be NSFW.
Clik here to view.

DataAnnotations Validation not working properly in ASP.NET Core 2.0 Razor Pages.

Hi All,I have created a new ASP.NET Core 2.0 Razor Pages application. Everything is working butfor some unknown reason, it doesn't show the custom validation messages instead it shows some default...

View Article

How can database table update with code

Hi,I addded table on database with model. however, if I change this model, how can I update database with code. I don't want to use this (add-migration "Add initial entity models"  and...

View Article

How to protect my asp.net core 2 app off CRIME and BREACH attacks?

Hello all!I'm using VS Code. What is the best way to protect webapp which uses gzip?Thank you.

View Article


css does not work in hosted .net core 2.0

Hi guys my css files dont work after I publish my site in .net coreI have registered my static folder which is lib under the wwwroot, and despite deleting all files and rebuilding it, it still does not...

View Article

Upload File to the path out of wwwroot

With the asp.net core , I can upload a file to the  wwwroot path , but how can I upload file to the path out of  wwwroot , e.g. “D:/MyPath”,My  code, like  this :  var filePath = @"D:\mydata";using...

View Article


Are there HttpModule and HttpHandler?

Hello all!What features I could use instead httpmodules and httphandlers?Thank you.

View Article

which asp.net core packages do I need to install ?

When I click on add new Item under projects , in the tab AspNetCore everything is empty. I would like to add a ASP.ent configuration file called appsettings.json.Do I need to install some packages , if...

View Article


ASP .NET Core MVC

Hi,If I create a MVC core app from the Visual Studio default template, it comes out of the box with Bootstrap. How can I update Bootstrap to the latest version? Am I right to assume that the out of the...

View Article

Lockout in ASP.NET CORE not working

Hi guys,I want to make Lockout for Users when some times of tries login, but it not work with me, i do not know whyThat in my code in Startup class:services.AddIdentity<AppUser,...

View Article

.sln file and Asp.net core 2 projects in VS Code

Hello all!What is the purposes of using the sln file in a workspace? Please, demonstrate step by step its usage with several csproj files in vs code.Thank you.

View Article
Browsing all 9386 articles
Browse latest View live


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