Questions tagged as 'asp.net-mvc'

1
answer

Viewbag for all controllers Asp.Net MVC C #

I have an application in ASP.Net MVC, after the user logs in I need to show their name at the top of the page, regardless of what page it is. This application is an administrative where the name of the company will be at the top, I saw some s...
asked by 26.09.2016 / 21:22
1
answer

How to pass variables from C # MVC 4 to SSS SCSS?

I need to dynamically change my CSS files by pulling some data, such as colors, from the database. I have chosen to use SASS in the application, but can I import an application variable into MVC 4 into my SCSS file?     
asked by 11.10.2016 / 21:14
1
answer

Change date format on C # / Asp.NET server

I am having a very annoying problem, I am getting a DataDeCadastro from the server that is in DateTime when the date well is in the US version ("dd/MM/yyyy") I use .ToString() to format as I want to. I have a way o...
asked by 11.10.2016 / 15:04
2
answers

ASP.NET MVC - Save User Permissions

I'm developing my first application in .net MVC. Normally when working with Web form, after the user logs in his information (name, email, permissions, etc.) was saved in the session. In this way, with each request it was possible to validate...
asked by 12.10.2016 / 20:22
1
answer

View Field When Selecting Dropdownlist and Savar

I have the following scenario: In a form I have a field called Load-Time , which is a Dropdownlist with a list of time loads. In this drop an option called another. When the "Other" option is selected a new field is opened to enter thi...
asked by 23.08.2016 / 16:37
1
answer

View model with ICollection

I'm starting in mobile development and I'm doing a category control system. Where I can multi-level categories. My entity looks like this: public int CategoriaId { get; set; } public string Descricao { get; set; } public int? CategoriaPaiId...
asked by 24.08.2016 / 16:01
1
answer

How to use Remote Validation correctly?

I'm trying to use Remote Validation to check if the email is already registered, the problem is that whenever I report an email for example [email protected] it does not return me that the email is already registered and it i...
asked by 16.10.2016 / 18:02
1
answer

How to add / remove items inside the Cart

I would like to make a simple Cart, where I used as a basis some explanations here inside the same Stack. Here is my Shopping Cart Controller: public class CarrinhoController : Controller { private Context db = new Context(); public A...
asked by 18.10.2016 / 03:46
2
answers

@ font-face c # MVC Bootstrap

I have a Bootstrap template that I'm trying to apply to a project, but I have a huge problem importing the .eot, .svg, .ttf, .woff, .otf files These files are in the directory: NomeProjeto\Content\fonts My .css file that I call atte...
asked by 11.08.2016 / 21:35
1
answer

MVC5 - Refresh partial view on ajaxStop

Hello, Inside my main layout page (_Layout), I render a partial view that is responsible for displaying messages that have been added by the controlled, through the Toastr javascript library. Partial view code @using Biblioteca.Util @usi...
asked by 12.09.2016 / 20:29