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

how to reference dll in asp.net core mvc

Hii need to reference nuance omnipage csdk dll in asp.net core mvc app, but i have no idea how to do it?the reference works with asp.net web application project ( .net 4.0 ) so will it work in asp.net...

View Article


Call API method with name doesn't work

Hii created asp.net core mvc app by command and then i opened the app using application with Visual Studio Code, then i restore it.I added a api controller inside Controller folderusing...

View Article


How on Earth do I reference a class library in my ASP.NET Core project?

Hi all,I'm having trouble getting my head around how project.json works, and the limitations. My setup is:Xamarin Client Model.dll (.NET 4.5.2) ASP Core Web API  I'd like to reference my Model.dll so...

View Article

Could not load type '' from assembly 'mscorlib, Version=4.0.0.0,...

I have added project of version 4.5 in Asp.Net Core 1.1. There was compatibility issue then I have installed packageInstall-Package Microsoft.NETCore.Portable.Compatibility -Version 1.0.1 After package...

View Article

Bug? Required properties causes problems with forms submits

A viewmodel can have many properties to be used by the view. Ideally you want to include only those that will be used.But sometimes you have many forms on one page. Let's say you have one form that...

View Article


Allowing decimals with both a comma and a period in ASP .Net Core web app

In an ASP .Net Core 1.1 MVC web app, is there any way to allow the user to enter decimal fields with either a decimal comma or a decimal point? Currently (living in South Africa with local server) the...

View Article

Image in Navbar - and I thought it was simple

I am getting frustrated with this seemingly easy task.I am making a demo for my boss and thought I would add the company logo which I grabbed off the company web site.  I made a folder called Logo and...

View Article

Website Income Generating

Hi, not sure if this is asp.net core specific.However, has anybody created a website to generate income and been successful?If so could you share your story and may be offer some mentoring?I have found...

View Article


Bind properties from a ViewModel to another model

I'm curious about binding properties from a ViewModel to another Model.ViewModel:public class StoreIndexData { public Store Stores { get; set; } public District Districts { get; set; } public...

View Article


"No 'Access-Control-Allow-Origin' header is present on the requested...

I've created an ASP .Net Core 1.1 Web API. I've had some issues with our IONIC2 app calling the API because of CORS issues. So, on my Startup.cs I added:public void ConfigureServices(IServiceCollection...

View Article

View sql queries generated by EF Core

Is there anyway to see what SQL query EF Core is generating? (ASP .Net Core 1.1)

View Article

Cache not clearing after logout

I'm logging out the user with: HttpContext.Authentication.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme); ViewBag.Result = "You have succesfully logged out."; return...

View Article

How to use exception filters in the asp.net core web project

In the asp.net core web project.I want to use exception filters to log in, before Mvc, only need to inherit HandleErrorAttribute, override the OnException, now core no HandleErrorAttribute in this...

View Article


Unable to load DLL 'libuv' while running .net core project?

I am trying to run a .net core project and opening the project in visual studio 2017 (windows 7 - 64bit) but i get this error:Unable to load DLL 'libuv'What do i need to do? what does that means?I have...

View Article

enforcing custom headers

I am struggling to find a way to enforce a custom header in the Web API I am building using ASP.Net Core.  I know we can validate if the custom header entry and value exist but I am curious if a way...

View Article


WebClient in Core

Hi,What is the equivalent WebClient in Core? Error is "the type of namespace name WebClient could not be found"using (WebClient client = new WebClient()) {    string html =...

View Article

Controller return Json include Array in Item No full in Result Ajax

Hi,I have problem, when controller return result Json (in Json include item Array), with array item in items length = 0 then result ajax OK, when a item in items length > 0 then have problem (result...

View Article


Authorizing each controller/action

I'm putting together an intranet site for our company.  The administration wants complete control over everything. Basically, they want the ability to create "policy groups" at whim, and for each...

View Article

Image may be NSFW.
Clik here to view.

Cascading DropDownList: Updating an existing value

Hello,I have the following JS which I use to populate a dropdownlist District depending on whichDepartment the user chose.Here is the code:First I populate the Department dropdownlist and I insert a...

View Article

Sharing HTML among views

Hi!I am trying to share a piece of HTML (2nd level links) among views of one controller. I tried to put RenderSection in the _Layout.cshtml and then:@section HomeSection in _ViewStart.cshtml placed...

View Article
Browsing all 9386 articles
Browse latest View live


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