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

Membership Secuirty in NET CORE

i have a project (asp net 4.5) that is using the Membership Class from System.Web.Security.since the original project is bases on this, i want to implement the same in netcore.i tried to add the the...

View Article


Deploy application in azure free hosting

I am trying host  my application in azure free account  . I created the sql database and then I published my application but after running it comes the following error . Please any help HTTP Error...

View Article


ASP.NET Core 3.1 Angular Web App builds and runs on Windows but fails on Mac...

I created a basic ASP.NET Core 3.1 Web app from Angular template in Visual Studio 2019 on a Windows 10 machine. The entire project source code is located heregit clone...

View Article

ASP.NET Core 3.1 OData with Endpoint Routing and Versioning

Hi!I am creating an ASP.NET Core 3.1 OData project using endpoint routing (it is already supported) and versioning.While registering my OData route I have not one but two models (`IEdmModel`), which I...

View Article

.netCore FileUpload with IFormFile , input box not grabbing user data

I'm trying to integrate a fileupload module and input box to my CRUD operation in a .net3.1 Blazor app, it works on another vs project .netcore3.1 i have tested, but with the one in question, the input...

View Article


EntityFrameworkCore and get data of column which is not a KEY

how can i get a row from sql server where the row that i want to fetchis not part of the key?for examplepublic class Accounts { [Key] public int AccountID { get; set; } public string CompanyName { get;...

View Article

Getting variable from model to javascript

I'm using net core and making a Razor page. I wanted to use a variable from the model class in a javascript so that I could do a request with Ajax to get the relevant data.However, I am getting some...

View Article

How to get a SQL Query to a DTO?

Hello there,I am currently migrating my asp.net project to asp.net core as per my clients requirement and I am stuck with a specific part for which i will need your help of. I am using the following...

View Article


Web Api CRUD - internal server error / how to fix?

This code all works as new usernames are added to the table. However, response._StatusCode says internal server error.There is something going on with ActionContext and I have found some threads...

View Article


How to prevent url forgery in asp.net core mvc

asp.net core mvc is relatively new and i am expecting there must be some way to prevent user to tamper url data. is there any way out to prevent url forgery in asp.net core mvc?any tag helper exist for...

View Article

Bootstrap radio buttons inside my asp.net core mvc are shown as disabled

I have the following code inside my asp.net mvc core web application to show 2 radio buttons:-<div class="form-group"><label class="control-label"...

View Article

What are some simple ways for uploading my ASP.Net Core project?

Hello,I'm new to programming and I just finished my first ASP Net Core project. I want to deploy it on the Internet, But I don't know how to do it.So, What are some simple and free ways to upload...

View Article

What is the best place to store sensitive info inside asp.net MVC core web...

I am working on an asp.net MVC web application, and inside my code i am sending email using an SMTP server, and to do so i need to pass the username and password. currently i have the password inside...

View Article


ASP .Net Core Problem with Unity

1:step1: Create new ASP .NET CORE by "dotnet new MVC";step2: Create .exe by "dotnet publish -r win-x64 -c Release /p:PublishSingle=true /p:PublishTrimmed=true";step3: The Web Page Style is missing when...

View Article

Encrypt sections of the appsettings.json inside my Asp.Net Core MVC web...

I have the following `appsettings.json` inside my asp.net core MVC web application:- {"ConnectionStrings": {"DefaultConnection":...

View Article


Jtoken as Post Parameter in aspnet Core 3.1

I have an application that was written in aspnet core 2.1 and I did an upgrade to core 3.1 the web API failed.  Why is JToken now not valid parameter?  // This works on core 2.1 but failed on...

View Article

Image may be NSFW.
Clik here to view.

Bootstrap is not recognized in Razor page

I just created a new project. I created a new Layout page and added Bootstrap like so:head><meta name="viewport" content="width=device-width"/><title>@ViewBag.Title</title><link...

View Article


ASP.Net Core Razor Pages - creating a method to return list as json

I have a ASP.Net Core Razor pages project. Trying to implement a DataTables. The HTML table was created through the scaffolding process and uses foreach loop to load the model data.Here is my...

View Article

ServiceLayer dependency problem in DotNetCore Web API controller after adding...

Hi.A problem I am having is with .NetCore WebAPI type project. Earlier running fine, throwing exception after adding swagger packages and resp. modifying the startup.cs class. Coreswagger.API is my...

View Article

What is the recommended javascript front end for asp.net vc core

We are planning to start developing a new web application, as we chose the following technologies:Asp.net CORE MVCEntity FrameworkSql Server 2016but we did not settle on the front end tool used, we...

View Article
Browsing all 9386 articles
Browse latest View live


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