Questions tagged as 'asp.net-mvc'

2
answers

EntityFramework, Migrations and MySql. Schema name being misinterpreted. How to solve?

I'm having a problem using migrations with MySql . When I try to create the first version with Migrations it is making the schema / bank name part of the table name: public partial class Initial : DbMigration { public override...
asked by 03.07.2015 / 00:38
2
answers

Fill all fields of an Object in an iterative way

I have a Class public class Objeto { public int _numero { get; set; } public DateTime _data { get; set; } public string _palavra { get; set; } public decimal _decimal { get; set; } } Is it possible to do what I want with the...
asked by 05.03.2015 / 16:15
1
answer

How to create an application from scratch in ASP.NET MVC?

I'm studying about Asp.Net MVC and here My problem is this: I have this form that is in Jsfiddle and that I have to add this information to a database, ie I would have to get the data - > create one Query to insert and save in...
asked by 17.03.2016 / 01:05
2
answers

Code Abstraction

I am creating a question and answer project, more to consolidate my knowledge and acquire others. But in developing it I came up with an issue that I am thinking of which of the options would be best to create a model and consequently a table cl...
asked by 10.08.2014 / 03:38
3
answers

Limit for uploading files

I have a project in Asp Net MVC .NET Framework 4 as follows: View: <div class="file-content"> <label class="custom-file-upload"> <input type="file" id="importar-arquivos" multiple accept=".pdf" name="arquivo" re...
asked by 30.09.2016 / 14:52
1
answer

InvalidCastException: Unable to cast object of type 'System.Security.Cryptography.RSACng'

I'm trying to pass the PIN through the code, so the user does not have to type it all the time, he's returning this error:   InvalidCastException: Unable to cast object of type 'System.Security.Cryptography.RSACng' This is the function I'...
asked by 30.11.2018 / 18:28
1
answer

How to pass values in an Action Link that are in HTML elements?

I have 2 HTML elements, a TextBox and a Hidden , which have values, how do I pass the values of these elements to the Action link in the Action link? Below the parameters docItemId and vlrImobIcms are giving error. &...
asked by 18.02.2014 / 13:58
1
answer

FullCalendar displayed at wrong time

I'm implementing FullCalendar in a project, I've inserted some Events in the database, and I return them via Json . But by displaying them on the screen, they come with the correct date time, but the display does not show in the c...
asked by 22.05.2017 / 15:47
1
answer

ASP.NET WebForms, MVC or WebAPI? [closed]

First of all I would like to emphasize that my knowledge in web development is very small, so my question will be focused on what to use and not how to use, since the goal is to study first and then develop. I need to create a web application...
asked by 29.05.2017 / 14:53
1
answer

Redirect to View in another structure

I have a project, which is in an area, in it, my main controller, has an action that, when called, should return a view that is in another folder, but within the same area. return View("OutraPasta/Index.cshtml"); return View("~/Views/OutraPas...
asked by 27.03.2017 / 22:08