ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.
0
votes
0answers
3 views
Mvc FixedDisplayModes still doesnt work
Like it says, I'm using http://www.nuget.org/packages/Microsoft.AspNet.Mvc.FixedDisplayModes
and only the desktop view is showing. I'm using the electric plum mobile emulator, and when I debug ...
0
votes
0answers
5 views
How to Debug NinjectWebCommon.cs?
We are trying to debug through ninjectwebcommon.cs to find the binding for a respository.
In VS 2012, I am putting a Debugpoint on the kernel.bind but it doesnot hit anytime. Can someone sugggest me ...
0
votes
0answers
8 views
Add Web Api controllers to an existing ASP.NET 4 web application
Following the steps from this question How to add Web API to an existing ASP.NET MVC 4 Web Application project? , I have added web api support to my application.
In my original scenario I have the ...
1
vote
1answer
34 views
C# Class Instance Holding String Reference But Not Object Reference
Alright, so I have spend LITERALLY five or six hours working on this to no avail. I'm working in C# with ASP.NET MVC 4 and EF 5.0, I believe. Here's my problem: I have a method in my controller takes ...
0
votes
0answers
15 views
Call an Action Method inside a MVC Section: “Section not defined”
In the _Layout.cshtml there is a @RenderSection("MySection",required: true)
in the Index.cshtml the call was just passing the Object model with an @Html.Partial
ie.
@section MySection
{
...
0
votes
0answers
11 views
Resolve to the links probleme
Net MVC 4, I created a side bar with links through the URL Helper
@Url.Action("Core", "Config" )
which refers to to the link :
localhost/Core/Config
the porblem is when going to another link ...
0
votes
1answer
30 views
Passing an argument to a Controller from a Modal window
The Modal JQuery
<script type="text/javascript">
$(document).ready(function () {
$('#submit').click(function (e) {
var locked = '@ViewBag.Locked';
if ...
0
votes
0answers
6 views
How to determine client default printer paper size from MVC4 web application
I have an MVC4 web application which uses DevExpress XtraReport to generate various reports. We use custom code to generate the report structures as they are fairly complex. We also use custom ...
1
vote
1answer
23 views
How do I force razor to switch back to client side code?
I've got the following code in one of my views
@if (ViewBag.LoginInfo != null)
{
var loginToken = "@ViewBag.LoginInfo.Token";
var loginUser = "@ViewBag.LoginInfo.UserNameJs";
var ...
0
votes
0answers
39 views
Generic Repository - MVC 4 with Linq to Entities
I think there is something very simple that I am missing or clearly not understanding. I am attempting to create a MVC 4 project that utilizes EF with a model generated by a database. I am ...
0
votes
1answer
21 views
Action method does not get call
I'm trying to use bootstrap typeahead but cannot get it to call my Action (ASP.NET MVC 4). The following is rendered in the browser :
<div class ="control-group">
<div class="controls">
...
0
votes
2answers
30 views
LINQ to Entities does not recognize the method. Guid causing trouble?
In my model class OwnedModule i have OwnerID as Guid.
There is another model class called BusinessUnit which contains the same Guid value from OwnedModule and its OwnerName.
I want to show the ...
0
votes
0answers
6 views
Ninject Error: Method 'Get' in type '' from assembly '' does not have an implementation
Code
Ninject configuration
In NinjectWebCommon:
var modules = new NinjectModule[]
{
new RepositoriesModule()
};
kernel.Load(modules);
Repositories
public class RepositoriesModule : ...
1
vote
0answers
23 views
Entity Framework Rails like Scoping
How would you apply a global Where parameter to all Entity Framework search parameters.
For example, I have an entity (Event) that has a parameter called Active that is a boolean flag that determines ...
0
votes
2answers
49 views
DRY Entity Framework Search Call
I have an Entity Framework (v5.0) DbContext called Entities that is auto-generated by the framework (I think my design pattern is Database First).
I have this search command (shown in the snippet ...