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

1
answer

Scroll bar on a table with bootstrap

I have a table, where I load information from the database into it. It has two columns (CNPJ and Social Reason). The table I mounted with bootstrap. I would like it to have a maximum height and create scrollbar (I find that difficult), as I do n...
asked by 27.06.2014 / 15:01
2
answers

How to get all records of a mixed table generated by class inheritance when using EntityFramework 6?

I have a class structure in the following form: public class Pessoa { public int Id {get; set;} public string Nome {get; set;} } public class Membro : Pessoa { public int CargoId {get; set;} public Cargo Cargo {get; set;} } p...
asked by 21.04.2014 / 17:12
1
answer

Encrypt Web.config

I come here with a question regarding ConnectionStrings of Web.config . Seeing that we normally report a form of authentication on ConnectionStrings for the application to access the database. By default, anyone accessing...
asked by 19.03.2015 / 15:06
2
answers

Control visibility of view components in ASP.NET MVC 5 controller

I am refactoring a project in ASP.NET MVC 5, implementing some good practices and researching, it was mentioned that the use of if in the view (razor) is not the best practice, but I use it to show or hide some components (fields) according to t...
asked by 21.09.2015 / 15:40
1
answer

Change the naming pattern of Views that are generated by scaffold

I would like to change the nomenclature in which scaffold generates Views: Default: Create.cshtml Delete.cshtml Details.cshtml Edit.cshtml Index.cshtml I want scaffold to create this: Criar.cshtml Excluir.cshtml Exibir.cshtml Edita...
asked by 03.10.2015 / 20:59
2
answers

How to populate a DropDownList from another DropDownList

I need to know how to populate a DropDownList from another DropDownList. Example: I have a DropDownList named Project that takes the information from my DB. When I select for example "Project 1" I need in my second DropDownList to load all Sub P...
asked by 23.07.2015 / 13:54
2
answers

How to do this using @RenderBody from Asp.net MVC?

All screens in my system are Views and are rendered in the @RenderBody in the main _Layout I'd like to change my layout and make it look like this: So basically it's how I explained it in the image, Click the Menu will render there, an...
asked by 09.09.2014 / 16:19
1
answer

Pass two templates to a registration view

I have a sign-up access screen. I have to fill it with values registered in the database. Follow the codes: Models: public partial class Aba { [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverr...
asked by 22.05.2016 / 02:28
1
answer

What is Partial View?

Using the Controller I can return a Partial View , JSON, string and other things. What is a Partial View? Is it heavily used in projects? Why use it?     
asked by 18.10.2015 / 08:57
2
answers

Login with network user (AD)

I need to log in to the user on my system, with the user logged in to the company network. I've never done this and am having second thoughts on how to get user in AD. I am doing research on the net and still can not understand how to search for...
asked by 26.08.2014 / 13:36