Questions tagged as 'asp.net-mvc-5'

2
answers

Copy data from one field to another [closed]

My client requested that I create 2 fields in the system, one as "Cellular" another as "WhatsApp" and next to the WhatsApp field would have a button to copy the value, if the number is the same, someone has an idea how can I do it?     
asked by 11.11.2016 / 19:43
3
answers

ASP.NET Web Forms or MVC. Which is the Best and the Fastest? [closed]

I have great knowledge in WebForm, but I see a lot of growth in MVC. Will the WebForm be extinct? MVC is better than WebForm.     
asked by 04.11.2016 / 16:26
2
answers

Script to make a div appear

I have a user registry in my application, when I click on register I wanted to display a message. This whole treatment I'm already doing and playing the message in my ViewBag.Message. How do I show this DIV by clicking the register button?     
asked by 11.08.2015 / 14:29
4
answers

Make a regex to remove characters

In a return of a jquery function, the returned date comes in this format. /Date(1401731794773)/ I would like to remove the invalid characters on this date, which are: /Date( and )/ I only need the date (remaining) compon...
asked by 16.06.2014 / 18:29
1
answer

MVC - Create a typed model being a generic list

I would like to create a typed Model with it being a list of type T . Using: ASP.NET MVC 5 Razor For example: My model in cshtml will look like this: @model List<T> @foreach (var item in Model) { <h1>@item.nam...
asked by 23.06.2017 / 03:03
3
answers

Can not implicitly convert type 'string' to 'int'

protected void btnSave_Click(object sender, EventArgs e) { List<ProdutoAmortizacaoCreditoDias> aDay = new List<ProdutoAmortizacaoCreditoDias>(); ProdutoAmortizacaoCreditoDias ee = new ProdutoAmortizacaoCreditoDias(...
asked by 10.02.2017 / 18:57
2
answers

How to save data in SQL database - Submit

I'm studying ASP.NET MVC, I'm using Identity to perform user control and etc. So, I created a page, where the user will enter with 4 information: Initial Mileage; Final Mileage; Amount of liters supplied; Amount in R $. So...
asked by 29.11.2016 / 17:12
2
answers

Consume web-service in ASP.NET MVC

I need to consume some methods on my page through a Web-Service. This Web-Service is in Europe. What is the best way to do this? What are End-Points?     
asked by 24.03.2014 / 17:29
2
answers

Validate fields with html 5 and mvc 5

As I validate fields in CSHTML itself, that when I click the button, it validates the fields and if there are fields not filled it remains on the page, displaying a message. See the sample fields and the button to validate. <div class="form...
asked by 13.03.2014 / 22:54
1
answer

Login system in ASP.NET mvc

How do I implement a login system in an ASP.NET MVC application. Do I use Forms Authentication or Identity? I've been reading about Identity and wanted to see a basic example of Identity using the MVC web template without Authentication authen...
asked by 17.05.2015 / 04:59