problem with additional layout page
I would like to make a layout page based on the view shown below, with the content in the div with class "form-group" inserted in the resulting content pages. Or better yet, I'd like to make all the...
View ArticleI can not intercept the selected tab() with javascript ...
Hello, I'm usingtabs in acshtmlpage ofasp.netmvc coreproject,but Ineed tofigure outwhichis activewith javascript.Ifollowed the directionsof somearticlesbut I can notfigure it out. Below the code html...
View ArticleHow to pass variable server side to javascript? ..
helloeveryone, I'm developingwith VisualStudio2015asp.netmvccoreproject and I haveread several articlesbut nonecanexplainwell how topass an array ofobjects fromc#code(server side) tojavascript. That is...
View ArticleHow to Log last Active Database Connection in ASP.NET Core
Hi, I am new to ASP.NET core and building an application. we got a requirement where we need to log the last active database connection and use it next time to reduce the likelihood of one connection...
View ArticleHow to retrieve data of nested class instance from parent class instance in...
I am trying to modeling a class at school, and I end up with something like this:public class Class { public int ID { get; set; } public int Grade { get; set; } public Teacher ClassTeacher { get; set;...
View ArticleHangfire Implementation with MVC Asp.net core
Hi,I have a requirement that implementing the hangfire dashboard inside my application itself.I have a link "Dashboard" in my home page clicking on that Hangfire dashboard should open as the part of my...
View ArticleHow to write a web app with organisation authentication for power bi?
Hi, I'm a complete noob at .net core so please be kind :)I'm trying to write an web API for powerbi to use. Everything works good exept for the powerbi part.I'm using Azure AD to authenticate the user...
View Articleinstall .net core sdk on centos 7.2
Hi All,Can we install .net core SDK on CentOS 7.2 ? As per link they support only 7.1 https://www.microsoft.com/net/core#linuxcentos Regards,Sidh
View ArticleConsume wcf service from asp.net core Credentials not found
I have added a service reference with Visual studio WCF connected service.When i try to consume i receive the exception that the credentials are not found.I´ve been able to consume this service in...
View ArticleProblem with generate DateTime with Entity Framework
I am trying to model a chat box, therefore I want the time a Message created is generated by the database. This is myMessage class:using System; using System.Collections.Generic; using System.Linq;...
View ArticleHow to specify Custom Build Step in ASP.NET Core .csproj file?
(My first attempt at posting this seemed to simply fizzle with an error from the site, so all apologies if this is a duplicate.)I have an ASP.NET Core project in Visual Studio 2017 and I need to add a...
View ArticleTrying to port WebApi (ApiController based) code to .Net Core
It seemed like the answer to all my problems was Microsoft.AspNet.Mvc.WebApiCompatShimbut when I try to install it it says Webapi.Client 5.2.2 is not compatible with net core app1.1.I am having so...
View ArticleTrying to run a .net core application - error
Error on startup - the project system has encountered an error -- value cannot be null -- Parameter name key diagnostic log is as follows.. grateful for any help provided -...
View ArticleProblems using WebResponse and WebRequest in asp.net core
Hello everyone, I can notoperatein asp.netmvc core the followingcode executedwithout problems in a desktop application:var request = WebRequest.Create(requestUri); var response = request.GetResponse();...
View ArticleArgumentException: The 'ClientId' option must be provided
Attempting to do 3rd party authentication using Facebook. This used to work under .Net Core 1.0, but I just upgraded to VS2017 and .Net Core 1.1.Complete error is:ArgumentException: The 'ClientId'...
View ArticleSimple jQuery script doesnt fire
Hi!I have this script on my page:@section Scripts {$("#moreLink").click(function () {$(this).slideUp();$("#moreSection").show(); }); }this link<a id="moreLink" href="#">Les mer</a> and the...
View ArticleCan't communicate with ASP.NET Core webAPI from another computer.
Hello all, I'm new to ASP.NET and I'm having some trouble I'm hoping to get some help with. I've written a very simple ASP.NET Core WebAPI that I'm trying to test. When I run it on my development...
View ArticleCalling ASMX web service in .NET Core class libarary
Please bear with me if I sound stupid since this is the first ever app I am working on .NET Core. I am working on an AWS Lambda project which is basically a .NET Core app. I have written core logic in...
View ArticleNested foreach help - Cannot apply indexing with [] to an expression...
I am creating an excel spreadsheet and have an inner foreach of a column list and I am trying to get the outer foreach data dynamically based on the column name. Instead of having if statements based...
View ArticleASP.NET MVC – example of RequiredRouteConstraint (:required) use
I am not sure about RequiredRouteConstraint use. The definition sais“Constraints a route parameter that must have a value.” and”This constraint is primarily used to enforce that a non-parameter value...
View Article