Questions tagged as 'asp.net-mvc'

3
answers

Field date 01/01/0001

I'm having a project
asked by 08.04.2014 / 15:30
1
answer

When should I use ModelState.IsValid?

When should I use ModelState.isValid ? Is it just in the data insertion? And in the case of update and delete ? It's needed?     
asked by 21.06.2016 / 02:25
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

Error: The name 'ViewBag' does not exist in the current context

Good morning, I have projects using System.Web.MVC na versão 4.0.0.1 , I was working normally on the 2013 version of Visual Studio, now I'm trying to work with Visual Studio 2015 and my Views do not recognize some properties for example...
asked by 18.11.2015 / 13:07
2
answers

Which is safer: session or cookie? [duplicate]

Thinking about security , what is the best option to keep the user logged in in an ASP.Net MVC application, cookie or session ?     
asked by 07.03.2016 / 15:03
1
answer

How to Create DropDownList in ASP.NET MVC 4

Could you help me create a DropDownList in MVC4? I have the class ProjetoFuncionario which is an associative class of Projeto and Funcionario . Should I create a class for DropDown? I'm having a hard time crea...
asked by 15.11.2014 / 21:45
2
answers

What is the equivalent of if ($ _ POST) in .Net (ASP.Net MVC)?

I'm coding a page in Visual Studio, in ASP.Net MVC, and I need to display a div only when there is a POST on this page. This is a form that will make POST on the page itself. When there is POST , I'll send a commit...
asked by 01.09.2014 / 18:32
1
answer

What is DNX really?

Long time ago I asked here o which is the runtime environment , especially on the .Net platform. It turns out that now .Net has the DNX which is the ".Net Execution Enviroment". In practice we used DNX to run software developed with the new v...
asked by 26.09.2015 / 02:10
1
answer

Problem with .Include () in the Entity Framework (Postgres)

I've been having a problem with EntityFramework, it's the following: When I use the ORM (.Include) string to join tables to foreign keys, it automatically renames the keys in the string automatically generated by it and ends up not finding it...
asked by 19.10.2015 / 17:11
2
answers

Best way to do an Action that does not return data

I am making an ajax call to change an object. The call does not have to return anything. Only the code http 200 (OK) or 500 (error). I'm using the following code in the action but I do not know if it's the best: return new EmptyResult(); Wh...
asked by 16.01.2015 / 01:54