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

4
answers

Line break in bootstrap

I'm making a form, and I have the following code: <div class="row"> <div class="col-md-6"> @Html.EditorFor(model => model.Nome) </div> <div class="col-md-6"> @Html.EditorFor(model => model.S...
asked by 16.07.2015 / 14:56
2
answers

Login with network user

When I open the page I'm building, the user logged in by the network will log in to the page with that user, but without having to open a page for it, that is, my system will have to get the guy access the portal / system. I use: VS2013 - MVC...
asked by 13.08.2014 / 02:01
2
answers

How to perform a Where using Entity Framework

I have a web application that needs to present a list containing some data, for this, I created the Model: Crm_Analise : public class Crm_Analise { [Key] public int id { get; set; } public string cod_item_CRM { get; set; }...
asked by 12.07.2017 / 21:02
2
answers

Sort Dropdown with jquery after append [duplicate]

If the user does not find the desired item in the dropdown list, it can include a new item, for this I used the prompt function of javascript , and then the user types the name and clicking Ok , if the object is not a...
asked by 19.12.2016 / 21:41
2
answers

Error localhost Visual Studio

My VS was working perfectly, today I bought and installed the kaspersky antivirus, when I was running an ASP.NET site (MVC) the following error appeared:    UNABLE TO START PROGRAM '' An operation is not   valid in the current state.  ...
asked by 23.02.2017 / 22:38
4
answers

How to hide the time of a "DateTime?" field in the user interface?

The time is showing up for the user. My question: is it possible to hide the time and show only the date? How are you looking: Modelcode: View code:     
asked by 05.02.2014 / 18:32
2
answers

Claims Identity MVC

I'm having a hard time implementing Claims to perform user authorizations in my project, I've read a lot but can not execute. I'm using the NHibernate.AspNet.Identity for this reason I can not run as in forums and tutorials read, but I'm n...
asked by 06.07.2017 / 05:08
3
answers

Validate field after typing in ASP.NET MVC

I have a registration page in ASP.NET MVC with Entity Framework, this register has an indication field, where you must be informed the nickname of the user that indicated. I wanted to type this field after the user validate in the ASP.NET con...
asked by 07.03.2017 / 05:06
2
answers

Convert Linq Query to Dapper

In my application I have the following query: public IEnumerable<Cliente> BuscarClientePorAnoETipo(string ano, string filial, string tipoPrestacao) { var filialConvertInt = Convert.ToInt32(filial); var prestacaoConvertInt = Con...
asked by 01.06.2015 / 15:02
1
answer

Controller routing and actions in lowercase

How to make the controllers and actions routes all in lowercase? For example: instead of Noticias/Details get noticias/details .     
asked by 31.07.2015 / 14:38