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

2
answers

Put a datepicker in a mvc 5 view with jquery or similar

I have this razor in my view: <div class="form-group"> @*@Html.LabelFor(model => model.DT_AGENDAMENTO, htmlAttributes: new { @class = "control-label col-md-2" })*@ @Html.Label("Data de Agendamento", htmlAttribu...
asked by 11.11.2015 / 17:31
1
answer

Date is coming in wrong format

In a jquery function, I get a date in my View. It turns out the date is coming like this: /Date(1402369200000)/ I know I need to cast or something, but I do not know how. Can someone give me a help? My controller: [HttpPost] publi...
asked by 16.06.2014 / 16:29
1
answer

Migration generated empty after Scaffolding

I'm studying ASP.NET MVC5, so I created a model called RelatorioTagModels : public class RelatorioTagModels { [Key] public int TagID { get; set; } [Required] public decimal Tag { get; set; } [Required] public de...
asked by 16.02.2017 / 15:53
1
answer

How to customize the 404 error using HttpNotFound?

Follow the code below: Controller: if (id == null) { //Response.StatusCode = 404; return HttpNotFound(); } View: @{ Layout = null; } <h2>Página não encontrada</h2> I added new code web.config: <cu...
asked by 14.02.2017 / 16:33
1
answer

I can not do include

I try to include, but the message appears: InsomeofthesearchesI'vedonesaytoincludeusingSystem.Linq;usingSystem.Data.Entity;butminealreadycontainsthese.Myclassesare:PhotoPartner:usingSystem;usingSystem.Collections.Generic;usingSystem.Componen...
asked by 28.01.2017 / 14:59
1
answer

Login on index screen

Talk, people, beauty? So I'm developing an ASP.NET MVC application and I have a login screen, however I include in the navbar login, where from the index the user could enter their email and password and click the enter button without having to...
asked by 07.10.2016 / 20:41
1
answer

What is the best way to generate pdf files via webservice? [closed]

I have a Soap webservice and I came across the need to generate pdf documents. Has anyone worked with generating many documents via webservice and what technologies have they used? Which technologies have achieved better performance, workability...
asked by 05.05.2016 / 15:14
2
answers

Custom Viewbag, how to do it?

I need a custom 'Viewbag', which brings the name of the teacher and the id, related to the school login, for this I did: ViewBag.ProfessorID = new SelectList(from u in db.Pessoas.OfType<Professor>() join v in db.EscolaProfessores on u.Pe...
asked by 31.01.2017 / 19:54
3
answers

How to send dynamically created fields via JSON?

How to send via%% of% dynamically created% fields%, eg: The user types in a text field the quantity 4 and the function creates 8 input fields, or type 5 and the function creates 10 input fields, this function already works and is OK! This...
asked by 09.02.2016 / 11:55
2
answers

Error creating modal window with jQuery in ASP.NET MVC

I'm trying to create a modal window with confirmation for deleting the registry and avoid having to create a View only to display a message, but something is not loading right. I tried to create the window with both Display and Modal, but it sti...
asked by 26.09.2015 / 02:58