Contract Library Class Question
Your expertise is greatly needed, please advise on using connection string in .NET with multiple project. In .NET Core there is no configuration file, I have a project with all my contract (Interfaces)...
View ArticleHelp please..connect or access the connection string in startup...
Please help me solve this issue...How to I access my Asp.Net Core Startup file so for database connection from my Service Contract Class Library?public partial class WebApp_Entity : DbContext {...
View ArticleView is not getting refreshed in Asp.net mvc core 1.1
I am developing an MVC web application using Asp.net core 1.1 . In view i am creating grid by looping the div's.@foreach (var eachItem in Model.PageProjects) { <div class="media-body...
View ArticleSingle Sign-on in Asp.net core 2.0 identity
HiWe have recently converted our MVC 4 application to Asp.net Core 2.0 Identity.We were implemented some feature like single sign on in old application.I mean we are saving logged in user's session in...
View ArticleHow to populate user details when Remember me is checked in Asp.net core...
HiWe are using Asp.Net core 2.0 application and also implementing identity. For login using below code,var result = await _signInManager.PasswordSignInAsync(model.UserName, model.Password,...
View ArticleInject either parent or child object based on route value in ASP.NET core
How to inject either parent or child object based on route value to a asp.net mvc core controller. If possible by .NET CORE default DI mechanism or something like structure map . if route value is x i...
View ArticleRazor @() inside attribute value Not working
HelloI have a view as follows that is not working: model is: @model IEnumerable<RoleModel>@for (int i = 0; i < Model.Count(); i++) {<input type="hidden" name="hdn_@([i].Text)"...
View ArticleTag helper don't generate correct HTML
Hello everyone. Today I start learning about tag helpers. But when run my app and inspect a page by Developer Tools I see that tag helper don't generate correct HTML.Here is the code in my cshtml...
View ArticleHow To Test Logging In ASP.NET Core ?
In some cases, like analysis of problems in production, logging is really essential. Let me know that , how logging really works?
View ArticleCannot find reference assembly 'Microsoft.Win32.Primitives.dll'
Hello,I am trying to figure out how to start a aspnet core web app from another startup project and I'm constantly getting:InvalidOperationException: Cannot find reference assembly...
View ArticleHow to display images from folder outside wwwroot
I have some images I want to display that are private to the app and thus can't be placed in the static folder wwwroot.I know how I can show an image by returning a PhysicalFile from a controller, but...
View ArticleList.Add() Ambiguous
HiI have a base class:namespace SportsStore.Models.Entities.Base { public abstract class EntityBase { [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } [Timestamp]...
View ArticleMVC Core 2.0, WCF Service Reference, DataSets, Example
I need one! Lol New to MVC but I have experience with WCF and ASP.Net. I converted my old service to one compiled in VS2017 and my new project for MVC is also vs2017. I return datasets and strings and...
View ArticleFaild to restore nuget pakeges of previous .netcore projects
When I am starting a new project its nuget packages installed or restored successfully but whenever I start a previous project it gave me a bug that packages does not restore successfully which cause...
View ArticleCreate token based web API using Asp.net Core and Identity
Hello,<br> I am trying to crate a Web API and a login functionality which will return Identity Access token... I have already tried to get access token using JWT but failed.. Can any one please...
View ArticleHelp running dotnet service in OsX.
Hi, I dont even know if I am in the right place. But I would like this running and I am lost. This is what I am suppose to do:If you are on linux and want to run Feeder as a System service 1) vi...
View Articleasp.net core select tag helper
Hi, I'm having trouble with the select tag helper. I am able to retrieve records from the database and populate my select tags with the correct value/text for all available options but when submitting...
View ArticlePopup modals in asp.net core
I have been beating me trying find a example or tutorial creating a popup modal with a dark back-drop could someone help me please?
View ArticleURL Routing with dynamic content for CMS type URL structure
Hello,Im trying to get URL routing to work for dynamic parent-child hackable URLs, this was working to at least 3rd tier on an Intel based laptop however on an AMD CPU dev machine and Xeon Server the...
View ArticleUsers and Roles admin style
Are there any open source websites I can look at that has an Admin area with Users and Roles and which roles the users belong to, with Controllers and Views?
View Article