Questions tagged as 'asp.net-mvc'

1
answer

Views Tipped in ASP.NET MVC, using ViewBag

I wonder if every View in Mvc has to be typed? I want to get values from a form but these values are not from the same entity. I'm using a helper: @Html.TexBoxFor(model => model.Nome) I would like to know how to get the value of this...
asked by 11.10.2014 / 20:28
2
answers

Make a foreach inside a cshtml (view) from a controller

I made a code using Linq and jQuery . It turns out that it is giving me a problem that I can not solve, which is to dynamically create a Treeview . Then I had another idea. Make foreach direct in View (cshtml). Here's the question,...
asked by 11.09.2014 / 18:53
1
answer

Problem displaying image

As I display an image recorded in the database, I believe it is not actually recorded, because I can only see the name / format of the image. In this case, how do I display this image? I looked for some ways to do it using custom HTML helper...
asked by 14.09.2014 / 03:42
1
answer

Display foreign key attribute error

I have my classes: public class Bandeira { public int BandeiraID { get; set; } public string Nome { get; set; } public virtual ICollection<Curso> Cursos { get; set; } } public class Curso { public int CursoID { get; set;...
asked by 11.09.2014 / 21:31
1
answer

Model Create IEnumerable one for many

I have the following question. Having the MODEL MVC classes: public class Categoria { public int IdCategoria { get; set; } public string Nome { get; set; } } public class Produto { public int IdProduto { get; set; }...
asked by 08.08.2014 / 16:01
1
answer

Methodology and Documentation for ASP.NET MVC Projects [closed]

In the company where I work, I have always had complete freedom to develop the applications requested. I have always worked in a unique way despite having a co-worker because we both developed separate projects. Starting next week, I will be...
asked by 28.10.2014 / 20:27
1
answer

Returning list owned by multiple entities

In my application I have some entities and from some information of each one I need to perform a query in the database and display this information in a grid . I'm working with ASP.Net MVC 4 and my application is divided into layers: VO, BO, DO...
asked by 24.07.2014 / 23:11
2
answers

Request ajax accessing scripts already included

Hey guys, I have a view that renders a partial view. Index.cshtml <script type="text/javascript" src="~/Scripts/jquery-2.1.1.js"></script> <div class="tab-control" data-role="tab-control"> <ul class="t...
asked by 30.07.2014 / 23:03
1
answer

Object reference not set to an instance

"Object reference not set to an instance" of an object I'm having this problem here in my project in ASP.NET and since for quite some time I can not get on with it, please can I take a look at my code and identify the error I need to help with i...
asked by 28.07.2014 / 19:40
1
answer

Dependency injection with Ninject

I'm using Ninject in ASP.Net MVC and trying to implement, but I'm getting an error:    Error activating ISessionFactory       No matching bindings are available, and the type is not self-bindable.       Activation path:       3) Injection...
asked by 09.09.2014 / 02:20