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

what cms systems are available for .net core

What cms systems are available to use on a pure asp.net core(mvc 6) web site. Right now i am learning umbraco and know my choices are limited. I also seen orchard2. Are there others and what is the...

View Article


Customization for Identity in ASP.NET CORE 2

Hi,I want to create aspnetuser table with customized columns like hashpassword accept simple plain text instead of hashed. I want to remove hashing on that column. and want to add some more columns and...

View Article


Updating a database FK with another tables PK

HI guysI have two related tables. (1) Departments and (2) Sub departments with PK and FK relationships. I have a view with a dropdown list of DepartmentsID which updates the database Sub_Departments...

View Article

Creating a Enum based Dropdown in dynamically created HTML inside javascript?

Hi there,i know how to create a Dropdown (Select) based on Enum inside my Model. But how can i create such a Dropdown in dynamically created HTML code within Javascript because i can not directly...

View Article

How to write multiple files to the database?

public class Image { [Key] public int ImageId { get; set; } public string ImageFile { get; set; } }[Route("Images/Create")] [HttpPost] [ValidateAntiForgeryToken] public async Task<IActionResult>...

View Article


How to Connect Oracle db in asp.net Core

Hi Team,As per my project requirement.We need to connect with oracle using Asp.net Core web api. Is there any way to connect oracle 3rd party tools(free source)Thanks & Regards,Pavan Kumar.V

View Article

cultureInfo

Hi,how / where can I globally set cultureinfo. I can set in action. but I want to set globally in startup or ? //var cultureInfo = new CultureInfo("en-US"); var cultureInfo =...

View Article

How to make DB access thread-safe?

Hi,I have an HTTP interface which looks for user roles.There is one special case: If the database is empty, then the first user gets automatically created with an admin role. This check is by design...

View Article


How do I set the signoutRedirect to control where I end up when logging out...

I am using the following with a JavaScript Client to logout of an IdenityServer4 api.var config = { authority: "http://localhost:7601", client_id: "ClientLocal", redirect_uri:...

View Article


BEST TECHNIQUES - How do you modify a MVC layoutpage

Hi guys Can someone advise what are the best techniques for controlling an MVC Core2 _LayoutPage ?I want to be able to pass model data (from the database) 1. Initially I used BaseControllers, but it...

View Article

How to use dynamic variable Route table

Hi,I want to dynamic variable inside route table.var RoutueCategoryRootName = how can I get dynamic variableI have Localization  in my project or I can use my sql table  private void...

View Article

I can't figure out how to get errors to show with any type of client (MVC,...

I can't figure out how to get errors to show with any type of client (MVC, JavaScript, etc.)  using IdentityServer4 on a production server.I have it set to "debug" for the configuration in...

View Article

Serializer runs in the new thread?

I have a Get (int Id) method in my controller that returns class instance.Instance is created correctly(i can see that in the debugger) but on attempt to returnreturn classInstance;my code crashes...

View Article


Is there a trick to having a Web.config file work locally that can then be...

When you publish a core app to IIS, it automatically creates a Web.Config file if one doesn't already exist. Unfortunately, if I change anything in the web.config file  that is created in IIS, it gets...

View Article

will net-core 2.0 support enterprise library 6? If so any documentation...

We are trying to migrate our old Enterprise library 2.0 with Enterprise Library 6.0 in Net Core 2.0. We are using machine.config and in net core we cant find any machine.config and not sure whether net...

View Article


I can't active kestrel service on Ubuntu 16.04 with "Exec format error"

I am new to .net core and Ubuntu.I am following this guide: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?tabs=aspnetcore2xI am working with a clean ASP.NET core 2.0 MVC...

View Article

one-to-many relationship include and where

Hi Everyone,var products = unitOfWork.Products.GetAll() .Include(i => i.ProductDetails).Where(d=>d.ProductDetails.Any(i=>i.LanguageId==2)).ToList(); I have these two tables. I want to write...

View Article


Authentication with Json Web Token (JWT)

I am designing a Web API with individual user accounts, and I am trying to develop a token based authentication system. At first I planned on providing OAuth 2 bearer tokens, but I then learned that...

View Article

check if username exists

hello,I'm begginer and i need help!!I need do validation in mvc core to check if username already exists.. My source code dont work. it returns 0 where it should be 1. That is, 0 would usually not...

View Article

Replacing current tag with custom content using a Custom Tag Helper

I'm looking into creating a *custom tag helper* that replaces the original tag with content from an *external file*, but I can't seem to figure out how to do it when using *ProcessAsync*.The...

View Article
Browsing all 9386 articles
Browse latest View live


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