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

1
answer

How to use login in different areas in asp.net mvc

I'm creating an application, where it has more than Area , which is restricted. (as shown in the image below). Myquestionishowtologinindifferentareas?Details:SincetheusersintheAdminareaandintheSystemareaaredifferent,each   oneissavedto...
asked by 04.11.2016 / 19:27
1
answer

How to add new properties to a user using Identity?

How can I create new properties using the UserIdentity that comes by default when creating an MVC 5 application? Also, is it interesting to put information that does not pertain directly to authentication and authorization in the UserIdentity...
asked by 30.06.2014 / 03:10
2
answers

View Razor for PDF

I need to convert Views from my MVC 5 application into C # using Razor to PDF. I've already tried it, and the free tools depend on iTextSharp, which I researched has a different markup. But I need to convert any HTML page to PDF, that is, con...
asked by 18.08.2014 / 21:55
1
answer

How to update a DropDownList without refreshing the page

I have a Dropdown of States, and a Cities, and a ZIP field, which is making use of the online API of the mails, when I put a zip, my system checks if the city already exists in the database, and if it has not, it is added. so far so good, the pr...
asked by 19.11.2016 / 03:34
1
answer

ASP.NET BeginForm does not apply the route mapping when making the request

I have a route problem (again), I use ASP.NET MVC5, and I have the following route mapped: routes.MapRoute( "Search_route", "Home/Search/{search_input}/{search_input_category}", new { controller = "Home", action =...
asked by 28.08.2017 / 16:06
1
answer

TextBoxFor returned Null Post

I have a form in which I make a query to an API using jquery. The query returns the data and populates the textboxfor with this data: $.getJSON("//viacep.com.br/ws/" + cep + "/json/?callback=?", function (dados) { if (!("erro...
asked by 16.06.2016 / 22:40
1
answer

I am not able to make the value of a property be selected using the Razor Helper DropDownListFor

In my ASP.NET MVC 5 application I'm using .Net 4.5 I'm not able to make the option selected for a given property. Example of my class: public class Funcionario { [Required(ErrorMessage = "O campo {0} é necessário")] [StringLength(15...
asked by 05.03.2014 / 18:39
1
answer

Problems to authenticate on the 2014 Report Service server via C # application MVC5

I'm having a problem connecting to the 2014 Report Service via C # from an MVC4 project: Scenery: A 2014 Report Service Server was installed that will have numerous reports, due to the client having numerous SQL Server databases spread ac...
asked by 06.05.2015 / 14:53
1
answer

Edit field within a list in ASP.NET MVC

Well, I'm developing an application that manages Courses , and I'm trying to list where the Courses displays, the Student Name > and the Approved field, where it indicates whether it is approved or not, and on this screen I have to be abl...
asked by 14.06.2015 / 06:12
1
answer

Refresh the page (View) automatically in Asp.Net MVC

Well, in my application that runs Courses , I have a sign up screen, where the student clicks the "enrollment" button and enrolls in the course. field number of vacancies is decremented. The problem is that my View does not update afte...
asked by 15.06.2015 / 18:39