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

How to enter innerHtml to an input (generated with TagHelper)?

I created my own anchor tag using MVC 6 Tag Helper. It works fine if I give the innerHtml from a property but I want to give the innerHtml directly from HTML. Here is my TagHelper code for the custom...

View Article


[Entity Framework 7] Simple filter not works

Hi everyone,I have a little problem with my where clause. I work with entity framework 7 update 1.Here is my context :I have 2 entities (Dossier and Assiette). My entity Dossier contains a collection...

View Article


Web server recommendations

I'm looking for guidance of when to use the various server options. With Kestrel and WebListener built-in, when would someone choose one over another. I understand the WebListener is Windows only, but...

View Article

Get appsettings.json to class inside Startup.cs.

Hi everyone,I'm creating some web apis which CRUD information of foods.My data base is now a json file. And I have config like this in my appsettings.json :{"Logging": {"IncludeScopes":...

View Article

[Question] File isn't copied on debug.

Hi everyone,I'm creating a web api 2 project which uses a json file as a database.I used MapPath to get the physic path of my data file, but when I check the file, it doesn't exist. My question is :...

View Article


How to Xunit test REST API and HttpBadRequest / HttpNotFound ?

At the moment I have a mock db in memory and doing sth like :var result = _controller.GetMyStuff(1) as ObjectResult; var oneItem = result.Value as OneThing;Assert.Equal(200, result.StatusCode);...

View Article

Viewcomponents and Javascript

Has anyone tried running Javascript inside of ViewComponents?I'm using RC1 and this does not seem to work at all.

View Article

Need Recommended ASP.NET Core 1.0 Hosting

Hi There..Somedays ago I read news about ASP.NET 5.0 has been renamed to ASP.NET Core 1.0, N I'm starting a website withASP.NET that I'm hoping to grow to millions of visitors. I need a good web...

View Article


Token Based Authentication

Hi folks,I am using Asp.net 5 (Latest version). Please I need token based authentication Sample Code in Web API VS 2015.I am waiting for your response.Thanks in Advance

View Article


What is the recommended way to store environment related configuration file

In my web application there are many configuration files that differs on local and production environment. Is there a standard way to put the configuration in 2 different files and my application...

View Article

How to add existing database to Web App in ASP.NET 5 using Entity Framework

Hi,How do I add an existing SQL Server database to my ASP.NET 5 web app?  Some tutorials are talking about config.json file but I don't see it in my project.  I have appsettings.json.  Sorry...I'm new...

View Article

Why does EF7 say I haven't configured any providers, when ASP.net Identity is...

Also asked on Stack Overflow: http://stackoverflow.com/questions/35672464/why-does-ef7-say-i-havent-configured-any-providers-when-asp-net-identity-is-woJust starting a new MVC6 experimental app....

View Article

Compiling an ASP.NET 5 Web Application and generating DLL files

I created an ASP.NET 5 Web Application. While using Class Library Projects, I got some errors. So, I added class files and wrote my business logic and data access logic. After Publishing using Visual...

View Article


Bootstrap's JavaScript requires jQuery

I receive this error for Both Bootstrap and for Angular Modal service that I use (Modal service not loading without full jquery).Now, I don't want to include a +100KB Full jquery to only run...

View Article

DefaultModelBinder Replacement?

Trying to find the replacement. Dug through the github asp project under ModelBinding branch of Mvc but couldn't find anything. Any information would be greatly appreciated.

View Article


Best way of Task Queuing in ASP.Net5

In my web application - we send "Account verification" link to users after registration. Sending "Account verification" link is an asynchronous process and we allow user to continue using the website...

View Article

Asp.Net 5 hosting

What kind of host is required for Asp.Net 5? is a host with .Net 4.5.1 installed sufficient?Also how to deploy to that host, does copying wwwroot folder contents is sufficient or first,  publishing the...

View Article


How to create class library with "Secret Manager" implementation

I have a MVC6 web project with the implementation of secret manager (http://docs.asp.net/en/latest/security/app-secrets.html) to store my configuration keys and it works fine.This solution has a Web...

View Article

need asp.net 5 hosting

Hi,i'm looking for a good shared hosting provider for my website with the following details:1. support ASP.NET 5 a.k.a ASP.NET core 1.0 seems it has been renamed right 2. I am ready to pay around $100...

View Article

Entity Framework 7 Multiple Context Migration

Project A  (ASP.Net 5 Web)Project B: Data Access LayerProject C  (Any Other Layer)Now if we have multiple context and want to perform migration then solution is:CMD ->  Cd ProjectB -> dnx ef...

View Article
Browsing all 9386 articles
Browse latest View live


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