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

2
answers

httpErrors does not work

I'm trying to do an error handling with this setting: <system.webServer> <modules> <remove name="FormsAuthentication"/> </modules> <httpErrors errorMode="Custom" defaultResponseMode="File">...
asked by 22.10.2015 / 01:54
2
answers

Problem with a Count in Asp.Net MVC

My application manages courses, on my registration screen I have a field "number of vacancies" where it is decremented each time a student enrolls in a course. The problem now is that my Count is denying the "number of vacancies" field. On t...
asked by 08.06.2015 / 21:07
1
answer

Filter data from a table via a DropDown

I have a table returning the values paid by taxpayers. However I have to return all the data (since the application sums field by field). So far so good. But to show the user, I need to filter the table by date (year), for the user to view th...
asked by 06.03.2015 / 19:35
2
answers

Register only some data of a form C # Asp.net MVC 5

I have a people registration form, where I have already registered her address, there was a need to be able to register more than one address for the same person at the time I am registering her, but I can not have a nested form inside one that...
asked by 11.08.2015 / 16:19
2
answers

Modal does not redirect while executing Post

I have a View where I open a Modal to register a new data. It's working perfectly. The problem is that by registering using this Modal , it redirects me to the default page defined in c Controller . However, I only need...
asked by 28.04.2015 / 15:53
1
answer

Get the user last login

In my project I came up with this business rule. I need to get the last time the user logged in. So it would be something to get the day and time of the last login. I already have the column created in the database named UltimoLogin...
asked by 11.02.2015 / 01:35
2
answers

Disable DropDownList in View

Class public class ConfiguracaoEstado { .... [Required(ErrorMessage = "Selecione ao menos um estado.")] [Display(Name = "Estado")] public int EstadoID { get; set; } ... } Controller private void createViewBag(ConfiguracaoEstad...
asked by 10.02.2015 / 16:47
1
answer

HTML tags for Razor Engine (asp.net mvc C #)

I'm having trouble with my web application with asp.net mvc, how to create forms using the Razor Engine. Below is my HTML code. <form class="o-form" method="post"> <input name="senderName" id="senderName" required="required" t...
asked by 03.01.2015 / 15:02
1
answer

Disable a button in ASP.NET MVC

I'm developing an application that manages course enrollments, I'm still apprentice in ASP.NET MVC, and I have the following question: In my course screen there is an "enroll" button for the courses listed on this screen. I would like to know...
asked by 02.06.2015 / 20:26
2
answers

Popular DropDownList with JSON

- Controller - [WebMethod] public ActionResult GetSellers() { List<Seller> sellers = db.Sellers.ToList(); return Json(sellers, JsonRequestBehavior.AllowGet); } - View - @Html.DropDownList("SellerId", null, "-- Select --...
asked by 31.05.2015 / 17:38