how to Convert and formatting iso dates in C#
I have this DateTime property in a DTO public DateTime Dob { get; set; }and in my code I m running a for loop to match data and manipulate them as well, for (int i = 0; i < PatientInfo.Count; i++) {...
View ArticleModelState.IsValid Equal to FALSE
Hello,I need a little help to understand where is a problem. I have 4 tables: SparePart, SpareType, MachineType, PdmRelationship is next: SparePart has FK from SpareType and from MachineType, Pdm has...
View ArticleType Discriminator Configuration ASP.NET Core Web API
For a polymorphic Web API endpoint. Is there a way to configure the type discriminator?I only found a solution with a JsonConverter. But the problem is the framework behaves then a bit different. E.g....
View ArticleProblem trying to use ViewModel to Scaffold Controller
Very new to ASP.net Core 2 MVC but trying to figure things out. I have created a ViewModel:ublic class PeopleStateViewModel { public People People { get; set; } public StatesDictionary States { get;...
View ArticlePlaceholder in Textbox
Hi there,I'm using vs 2017 v15.3.3. How to put placeholder in textbox ? I just tried but unseen in "View".for "Model", put some code: [Display(Name ="No Project"] public string No_Project { get; set; }
View ArticlePossible to undo "ConfirmEmailAsync" in Microsoft.AspNetCore.Identity?
Is it possible to undo "ConfirmEmailAsync" in Microsoft.AspNetCore.Identity? If you already confirmed a user's email address, can you make the system undo this whenever the user changes the user's...
View ArticleCore 2 Framework error “FileNotFoundException” referencing libaries
Hello, this question is posted in StackOverflow without response in two days. For this reason I make a duplicate here.I have a Core 2 Framework Project. I use Core 2 for performance and need to use...
View ArticleError at publishing self-contained Core 2.0 application
Hi,after creating a new asp.net core 2.0 application with vs 2017 (version 15.3.3) and trying to publish this application with"dotnet publish -o dist -r netcoreapp2.0 -c Release"I get the following...
View ArticleASP.NET Core 2.0 Identity Server changes
So I watch a great plural site video (Understanding ASP.NET Core Security by Roland Guijt) and read and study tutorials by the masters of Identity Server, Brock Allen & Dominick Baier. I felt...
View ArticleAcessing ViewData Using Variable Name
I'm still new to .NET, and am struggling with something I'm hoping someone here can help me out with...I've got a number of ViewData objects that I'm sending from my Controller to my View. What I want...
View ArticleHow can you set the form action to a variable in asp.net core mvc view
I have an ASP.Net Core MVC web application. I have a view that calls a controller in a project on a different server. In this view I have a form with a post that calls the api.<form...
View ArticleAsp.Net Core 2.0 Mvc templates error
Have an Asp.net core 1.1 Mvc app that I converted to 2.0 that includes a custom Templates/ folder. When I attempt to add a controller w EF actions, I get the following error:There was an error running...
View ArticleDynamic Call to Database
I'm still digging in and learning .NET, and was wondering if someone can point me in the right direction on something?Right now, in my Controller, I've got a number of hard-coded calls to some tables...
View ArticleI gotted lots of time one big error.. but until now i did not solve about...
System.MissingMethodException occurred HResult=0x80131513 Message=Method not found: 'System.Collections.Generic.Dictionary`2<System.String,System.Object>...
View ArticleProblem with ondisconnected method of signalr
HI Allondisconnected method automaticaly calls without closing the window of browser right after onconnected how to fix it?
View ArticleASP.NET Core Razor page - refresh calculated field?
I come from the old ASP.NET WebForms and I have a question on the Razor Pages. Since ASP.NET Web Core Razor Pages are rendered on the server how would you do a simple calculated field that is...
View ArticleWindows vs Linux hosting using ASP.NET Core 2.0
Hello all!Who can recommend fastest platform - windows or linux use with ASP.NET Core 2.0 more productive (requests per second)?Thank you.
View ArticleControlValidator on ASP.NET Core?
Hello,I'm looking for a replacement for ControlValidator on ASP.NET Core since I'm trying to validate the following:I have a modal window that is used to register or edit new objects (Machines).These...
View Articleasp.net core mvc - user specific fields edit with many dropdownlists and...
My Models:public class Profile { public Profile() { FieldStatuss = new List<FieldStatus>(); } public int ProfileId { get; set; } public string OwnerID { get; set; } public string Name { get; set;...
View ArticleEmail Already Taken Validation ASP.NET Core 2.0 Razor Pages
With the Microsoft solution out of the box it has the ability to tell me when I make a new user in my sight that if the username is the same as someone else's then it will say: "User name 'username' is...
View Article