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

2
answers

help to view multiple line pass to a Controller

Well, I have a simple model for studies. There are 3 tables, Person, Allergy and Person Allergy. Being that a person can have several allergies. My person template is: public partial class Pessoa { [System.Diagnostics.CodeAnaly...
asked by 14.08.2017 / 15:55
1
answer

Error registering user

When I try to create a second user, with ASP.NET MVC , I get an error:    Violation of PRIMARY KEY constraint 'PK_dbo.AspNetUsers'. Can not insert duplicate key in object 'dbo.AspNetUsers'. The duplicate key value is (00000000-0000-0000...
asked by 26.12.2016 / 20:16
1
answer

Problem with Include in the Entity Framework

I have the classes: public class Estado { public int Id { get; set; } public string Nome { get; set; } public string Uf{ get; set; } public ICollection<Cidade> Cidade { get; set; } } public class Cidade { public int...
asked by 14.10.2014 / 05:05
2
answers

How to create user with password encryption?

How do I do in my ASP.Net MVC 5 and EF 6 application to save encrypted passwords in MD5 format when creating users?     
asked by 15.05.2014 / 21:43
1
answer

Error 500 in Asp.Net Library Awesome

I found browsing this library ASP.net Awesome . I found it to be very functional and easy to use. According to the documentation for using a helper named Lookup , you must have a controller and call the helper in csht...
asked by 19.05.2014 / 01:48
2
answers

How to upload multiple images with just 1 click?

I'm studying uploading images and files, and I can upload 1 image, and display it on the screen, but I'm interested in uploading multiple images with just one button, just like that web application link . How to upload multiple images? I'm u...
asked by 06.03.2014 / 15:41
2
answers

Binding in text field

In my project I have some tables between them one of occurrences and one of users, where a relationship between them of several occurrences for a user. What happens is that when registering an occurrence I have to reference the user, so that'...
asked by 03.12.2014 / 14:30
1
answer

Difficulty in positioning table on screen with bootstrap - layout only

I need to do a layout on my page, as follows. That I have three textbox controls, one underneath the other and taking the other side all the rest with a table. See below how I need it. Ihavetriedinmanyways,reducingmygridfrom12to6andwhathappenswh...
asked by 29.08.2014 / 13:21
2
answers

How to access from another computer the application running on localhost

I have a web application made in ASP.NET MVC 5, and I gave it a start in Visual Studio 2013, the address of the Index page was thus on the machine where it is running: http://localhost:51144/ . How do I get another network computer to a...
asked by 18.06.2014 / 14:44
2
answers

Recover data redirectaction mvc c #

I have a student consultation, // POST: /Admin/Anuncio [HttpPost] public ActionResult Index(Estudante estudante) { if (ModelState.IsValid) { List<EstudantesEncontrados> list = GetEstudante(GetEstud...
asked by 28.05.2014 / 07:33