Questions tagged as 'asp.net-mvc'

0
answers

Wrong Form Template BootSwatch

I started using the Yeti template from bootswatch and there were 3 problems, my textarea misaligned from my other fields, and the spaces between the fields increased a lot. Print the screen in the image below: link The sizes of the dr...
asked by 22.02.2018 / 12:33
0
answers

Entity Code First Migrations can not find Microsoft.EntityFrameworkCore.Design

Hello, I'm working on a dotnet 4.5.1 project using EntityFramework with CodeFirst Migrations, I've added 1 new field to an entity and I'm trying to add a new migration, however the following error message appears: N�o foi poss�vel carregar arqu...
asked by 14.02.2018 / 13:49
1
answer

Validate fraud attempt while editing registry with C # MVC

In my applications I was leaving the entity ID inside HTML being a hidden object. Example: @Html.HiddenFor(m => m.EntidadeID) But, I have identified that I can edit the HTML easily and in POST I can receive an invalid value. Before...
asked by 14.02.2018 / 17:51
1
answer

Create a list and insert the worksheet data into the database when importing

I have a protected void importar_Click(object sender, EventArgs e) method and inside it I check if the file has been selected, and it validates the file extension. This system is a file import system from an excel spreadsheet, which saves...
asked by 09.02.2018 / 16:51
0
answers

How to get a paypal token in asp.net mvc?

Follow the paypal documentation: here to get token. Follow the code below: [HttpPost] static async Task<HttpStatusCodeResult> Token() { var authorization = new { Username = "mat.miranda", Password = "xxxxxxxx...
asked by 10.02.2018 / 20:46
1
answer

Refresh DropDownListFor on form

I have a form that has two @Html.DropDownListFor and other fields. But when I change the first DropDownListFor I need to update the values of the other dropdownlist by passing its id as parameter ... @model EP.IdentityIsolation.Domain.Entiti...
asked by 07.02.2018 / 20:35
1
answer

Data Comparison Entity Framework asp.net mvc

I need to get the value and quantity in stock of a given product according to your Id. For debug the product id is arriving correctly, but when I assign the values to the table fields I am having a conversion error. / p> // POST: Pedido...
asked by 16.02.2018 / 22:33
2
answers

Convert string to DateTime in LINQ

I have a model where all fields are string . I want to convert to DateTime and Double For this I created a new model public class CPUStats { public DateTime Data { get; set; } public Double? Disco { get; s...
asked by 16.03.2016 / 14:41
1
answer

Site opens but does not load the files cs, js, png etc.

I have migrated from VS2012 to VS2017, and in my solution I have 3 sites, 2 of which I run and I have no problem and in the other one when I debug it opens but the whole Design part is not loaded (css, js, png, etc). Viewing the page log in Fidd...
asked by 09.02.2018 / 19:23
0
answers

How to model tables to store tag

I have a SQL Server database where I have a table of videos linked to several tags. As it is done here in the forum where each post is linked to several tags. What is the best practice for modeling the database? At first I thought of so...
asked by 01.02.2018 / 21:47