Questions tagged as 'asp.net-core'

0
answers

Paging Problem X.PagedList

I'm trying to implement the X.PagedList paging, but in that line: @Html.PagedListPager(Model, pagina => Url.Action( "Index", new { pagina, search = ViewBag.Busca })) I'm getting the following message:    'IHtmlHelper
asked by 21.09.2018 / 19:32
0
answers

require () on the client side

I am currently studying integrations with IBM Watson, more precisely the Speech to text, I would like to integrate this solution on the client side, so I do not have to make requests to the server that will be requesting the IBM server. I woul...
asked by 24.08.2018 / 15:12
0
answers

Save photo in MVC

I'm trying to save a photo to the database by following this link , but it is not working. Here is the HTML code: <div class="form-group"> <label asp-for="Foto" class="control-label"></label>...
asked by 17.09.2018 / 21:33
0
answers

Controller access problem [closed]

ApiController [Produces("application/json")] [Route("api/[controller]")] public class ClienteController : Controller { private IClienteRepository _ClienteRepository; public ClienteController(IClienteRepository clienteRepository)...
asked by 21.08.2018 / 16:44
1
answer

How do I pass a View value to the Controller in ASP.NET core?

I want to move from View <table style="width:100%"> <tr> <th>Serviço</th> <th>Data</th> <th>Feito</th> </tr> @{ foreach (var item in ViewBag.servico) { <tr> &l...
asked by 14.09.2018 / 00:25
1
answer

How to display ModelState errors when POST is done by AJAX?

Hello, I'm developing an application in asp.net core 2.0. I have a div with asp-validation-summary for the display of modelState errors. follows: <div asp-validation-summary="All" class="validation-summary alert alert-danger alert-dism...
asked by 16.08.2018 / 16:26
0
answers

Configure Fixed Port for Web Designing API Asp.net Core C # [closed]

I would like to know how to configure a standard fixed port for my Web API application in ASP.NET core.     
asked by 20.08.2018 / 21:11
1
answer

Error using the add-migration command. Using json as configuration file

Good morning! When I run the add-migration command, to do the migrations, I'm getting the following error: Add-Migration : Exception calling "AddFromFile" with "1" argument(s) : "'basePath' não pode ser uma cadeia de caracteres vaz...
asked by 25.07.2018 / 16:24
0
answers

Creating routes per user .NetCore [closed]

I need to create a sales site and each user will have their own "site" would be something like myystem.com.br/username What is the best way to do this using .NetCore?     
asked by 02.07.2018 / 22:34
2
answers

Creating a foreach with result of a query coming from the Entity

Hello, I'm trying to make a foreach with a query result, the field I need to go through is a string, but at the time I step into the foreach it is being transformed into another value. I need to compare two date, in case the conversion of the...
asked by 20.06.2018 / 16:00