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

.Net Core Email Confirm Gmail smtp problems

I have a .net core 2.2 app with identity package and email confirmation required for users who register. I was able to have this send successfully after configuring my gmail to "allow less secure apps"...

View Article


TrustServerCertificate=false

Hi Expert,I set  TrustServerCertificate=false; Encrypt=True" in webconfig and using sql server TLS certificate getting error messageServer Error in '/' Application.The target principal name is...

View Article


asp.net core razor page checkboxes model binding (always false)

i have a razor page in asp.net core with the following input tag:<input asp-for="chkPref" />in the code-behind i have:public bool chkPref { get; set; }so when i run the app, i can confirm in...

View Article

How to handle url redirect in dotnet core

I have a web application that wants to do authentication on every http request. I am trying to build a custom middle ware to do thishere is what I am looking to do1. a user makes a request to an end...

View Article

How to format a date as a constant.

I have a Constants class file in my solution that is used for roles and messages and I need to create one for date formatting. Currently on several views, I have the date formatted as...

View Article


Using a Queueing System for notification Messages. For 100 % Delivery Gauranttee

Dear All,So I have built an application that handles several kinds of transactions for merchant. I am trying to build a microservice that would give notification to my merchants.So my requirement is to...

View Article

Problema com retorno Json - asp.net core

Olá, boa noite!Estou tentando carregar um DropDownList em cascata via Ajax no asp.net core / C #, mas não estou conseguindo, alguém pode me ajudar.Carrega na DropDownList o valor UNDFINED.MEU...

View Article

Class Library Tag Helper for Partial Pages not working in ASP.NET Core Razor...

As part of my work on an ASP.NET Core 3.1 Razor Pages web application, I created several custom Tag Helpers. Once I had all of these working the way I wanted and expected (as part of the ASP.NET Core...

View Article


How to store exponential value in sql server

I want to store exponential value as it is in database in sql server.How can I store exponential value in sql server as it is without any formatting?Please help me out with same.Thanking you.

View Article


ASP.NET Core 2.2 Web API Angular. Hosting provider says 500 - Internal server...

Summary of the problem I am having:I am trying to publish ASP.NET Core 2.2 Web API and Angular 8 project with a hosting provider SmarterASP.NET that supports ASP.NET Core. However, I am getting an...

View Article

can i get a value from a Type?

i have a class which has a valuepublic class foo { public string SomeValue => "999"; }i only have the Type,is there a way topublic void SomeWork(Type type) { var avariable = //get 999 from the Type...

View Article

Creating non-hackable User Registration Page using Data Annotations

I have a user registration razor page and corresponding action that uses UserManager and SignInManager to create user accounts.  It works just fine.However, I only want a few people to be able to...

View Article

Page Routing based on a custom value

Hello:I need to authorize MVC pages based on a combination of custom values that I obtain from the user logged in, for example:A logged in user will see a certain page(s) if they have a code value of...

View Article


Web App Recommendation

Hello all:I understand it might be difficult making a recommendation without full details, but due to privacy concerns I cannot relate all details, and will give as much info as possible.I need a web...

View Article

Bind certain properties of the navigation properties inside my action method

I have the following 2 model classes:- public Submission() { SubmissionQuestionSubmission = new HashSet<SubmissionQuestionSubmission>(); } public int Id { get; set; } public string FirstName {...

View Article


Calling a WCF web service

Hi folks.  I followed this documentation and things worked nicely.  https://docs.microsoft.com/en-us/dotnet/core/additional-tools/wcf-web-service-reference-guideHowever, now I'm struggling to figure...

View Article

KB4556813 or KB4552926 broke .NET, has anyone else experienced this?

Hello all,Last night we installed two updates on a 2016 Data Center edition server, KB4556813 or KB4552926. 2926 specifically dealing with .NET. The server is configured as a web application server...

View Article


how to migrate wcf in .net core

Hi teami am migarting asp.net project to ,net core 3.1how to migrate wcf  here , shall i migrate wcf or use rest api for this or any other better suggestionplease suggest

View Article

How to load Navigation Properties in a generic method

I would like to read data from a DB context and eagerly load the navigation properties.  My code successfully does this:List<Peoplemvc> ap = await _context.People.Include(x =>...

View Article

use existing dll

Hi Team,I am doing migration asp.net project 4.5 framework to asp.net core 3.1how to use code which is poiting to system.windows.form in .net framework can i add same dll in my .net core project as i...

View Article
Browsing all 9386 articles
Browse latest View live


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