Questions tagged as 'razor'

3
answers

How to load a dropdown with a selected value

I have a method to perform change on some data. Among these data, I have a dropdownlist that contains the periods of the courses. When I select to change, I need the dropdown to come with the option checked, as it is in the database. I ne...
asked by 08.06.2015 / 18:56
3
answers

How to do an ASP NET MVC dropdown

I have a DTO Class [Serializable] public class PerfilDTO { public int Codigo { get; set; } public string Descricao { get; set; } public SituacaoEnum Situacao { get; set; } public List<PerfilFuncionali...
asked by 15.05.2014 / 21:53
2
answers

Rendering Partials in ASP.NET MVC

I'm having a problem in my application where I wanted to use partial to render one page inside another. That is, one controller inside another. But what happens is the partial does not render at all and I've done almost everything, but it does n...
asked by 15.05.2014 / 15:26
1
answer

Error after performing an action redirect to a page

I think I'm going wrong with the code below, it should save the Client and redirect to the Client / Index page, but after saving it stays on the same page, using Debug it passes in the Client / Index (Action and View) , but does not open the pag...
asked by 25.11.2015 / 12:32
2
answers

ASP NET MVC Include Url Parameter on all pages

I have an ASP NET MVC application that is multi-client and multi-user, that is, it is prepared to be used by multiple clients and each client can have multiple users. Initially, the login form has the text entry for the client code. However I...
asked by 03.03.2015 / 18:27
1
answer

Presenting message in a view via the C # MVC Controller

Looking for a solution I found a form on the link Controller message for the view But my problem is that nothing is displayed. I do not know if it's because I do not have an action in View but the message does not appear. The structure i...
asked by 06.01.2016 / 14:39
1
answer

Layout with different colors in TextBox (Safari and Chrome)

Safari is fading the colors inside that are not @Html.ComboboxFor, how do I not to remain in the textbox? I'm using CSS and JQuery, follow the photo Select does not exist in Safari: @Html.DropDownListFor(m => m.CEP.IdCidade, (SelectLi...
asked by 27.11.2015 / 17:29
3
answers

Application that does not need to load entire page

How can I create an application in MVC C# with Razor , where I have a Layout and then only update the central content and not the page as a whole. I have read some places to use AJAX other to use PartialView . But wh...
asked by 21.05.2014 / 21:17
2
answers

What is a Engine?

I read an article about Razor. This article says it's an engine view , but what's an engine ? According to the article, Razor is a new syntax that works with CSS and HTML to make life easier for programmers with cleaner and more readable code....
asked by 19.03.2018 / 10:44
1
answer

Good practices with .NET MVC

I have an ASP.NET MVC application and would like to know what are the best practices that microsoft indicates in the organizational question of the solution, using the latest technologies like ASP.NET Identity. Assuming the following scenario...
asked by 21.11.2014 / 20:46