Questions tagged as 'asp.net-mvc'

1
answer

Paste value hidden .net core

Good morning I have this hidden one that receives the value correctly: <input type="hidden" id="idHorario"/> But I need to get the hidden in the code, how can I proceed? HorariosItens = await _context.HorariosItens...
asked by 31.05.2018 / 15:47
1
answer

Delete space in the name of an input

It's the following, I'm doing a foreach this way. int count = 1; @foreach (var item in Model) { <input name="itemId_@count" value="@item.ProdutoId" type="hidden"> count++; } The problem is that in processing t...
asked by 31.05.2018 / 21:15
0
answers

Good practices Asp.net Core MVC: Create a DropDown for a current record to be used globally throughout the system

I'm having a question: I'm creating a back-end system in asp.net core mvc and in my _Layout.cshtml I need to create and load a dropdown listing all the system's BRANCHES so that the user can select the branch he wants to manage. This selected br...
asked by 01.06.2018 / 01:54
0
answers

Problems loading a DataTable with pagination and filters using Asp.net Core MVC

I have to load a list of ceps with almost 1 million records in GRID. So as not to be slow, I decided to use the "DataTable" feature and do loading, filters and paging using JavaScrip according to this tutorial: link . Charging is not working...
asked by 31.05.2018 / 22:41
1
answer

Error deleting - 1.9 Application termination: Delete operation

I'm not able to remove an ID when I click ... The error message appears: System.InvalidOperationException: 'Sequence contains no elements' Here is my code below: InstitutionController: using Capitulo01.Models; using Microsoft.AspNetCore....
asked by 30.05.2018 / 00:06
0
answers

Copy data from one TextBox to another TextBox

Greetings, I'm using ASP.NET MVC. How do I make TextBox_2 copy the text that is in TexBox_1 automatically when the page loads?     
asked by 30.05.2018 / 22:00
1
answer

Is there any way for a form to inherit from _Layout.cshtml in C #?

I'm developing a website at asp.net c# , I have a contact page that contains a form for the user to fill out and send if they want to send an email. I wanted the form page to inherit the properties of the remaining pages of the site, su...
asked by 24.05.2018 / 09:48
0
answers

how to define routes in MVC

Good evening .. I have the following Controller: HomController with Action: Login Clicking on the Enter My URL button is as follows: link I would like the URL not to be displayed this way, but: link I've already tried to...
asked by 02.06.2018 / 23:42
0
answers

Passing parameters between Views and Listing values

Greetings, I have an View Index that passes the values of the "id" column to another View Index , as code below: <a data-bind="attr: {href: url()}" target="_blank" href="@Url.Action("Index","Vw_RegistroVisita", new { i...
asked by 30.05.2018 / 18:21
0
answers

Doubt with 'OracleDataReader' is defined in an assembly that is not referenced

I'm using the Oracle.ManagedDataAccess.Client, it is referenced to the project containing the context. I have my Context: namespace Generico.Repositorio { public class Contexto : IDisposable { private readonly OracleConnecti...
asked by 29.05.2018 / 21:34