ASP.NET MVC 4 is the fourth major version of the ASP.NET Model-View-Controller platform for web applications.
0
votes
0answers
4 views
Razor MVC, where to put global variables that's accessible across master page, partiview and view?
Hello Razor MVC Gurus:
Newbie question.
Background. I have a custom IIdentity that is set in an HttpModule before it gets to controller & views. To use it, i have to do
MyIdentity ...
0
votes
1answer
15 views
Can I use a datetime as a key using code-first entity framework with mvc 4?
I am trying to represent a workday as a class in c#/table in a database for an ASP.NET MVC 4 application. I want to use code-first entity framework. When I try to add a controller for the workday I ...
0
votes
1answer
9 views
Nested 'Shells' with Durandal SPA
With Durandal, I can have a shell where multiple views could be displayed and viewed.
I have a scenario where I have a a left-menu of links, clicking on a link should load a new view into the right ...
0
votes
1answer
24 views
How to pass parameter to my custom filters
How to pass parameter to my custom filters. I tried the following way but I don't know how to pass the parameters.
public class AuditAttribute : ActionFilterAttribute
{
private ...
0
votes
0answers
11 views
ASP.NET MVC 4 - Chrome requesting data via angularjs gives 401.2 Windows authentication
Short description
In Chrome with Angular JS $http.get() gives 401.2 from my webappA to webappB with windows authentication on localhost running IIS express. If I navigate to the URL on webappB I get ...
1
vote
0answers
13 views
How to use Uplodify.js with Ember.js
I'm creatinga n app using Ember.js and Ineed to upload files in my app for that I've to use uplodify.js I know how to use uplodify.js in the traditional way but the problem is how can i use the ...
0
votes
2answers
23 views
mvc javascript with DropDownList
So my view receives a model.
And I want to, in case the ID property of the model is -1, make the DDL select the default value "[Select]" that is in there.
DDL:
@Html.DropDownListFor(cModel => ...
0
votes
1answer
19 views
Linq to Entities - Get list of all unique related entities
asp.net mvc 4, Entity Framework 5, SQL Server 2012 Express, Code First
I have a Place model:
public virtual int PlaceID { get; set; }
public virtual ICollection<Tag> Tags { get; set; }
public ...
0
votes
1answer
17 views
How to get changed/sent properties at controller?
Using
ASP.NET MVC 4
Entity Framework 5 (Code-first approach)
I have regular controllers and views. The difference here is that I need to get the name of the properties that were actually ...
1
vote
1answer
13 views
MVC4 Formcollection not refreshing?
I have a model with a boolean property. The corresponding view looks like this:
@Html.CheckBoxFor(model => model.TermsAccepted)
@Html.ValidationMessageFor(model => model.TermsAccepted)
In my ...
0
votes
0answers
17 views
ASP.NET MVC 4 Background operations
I am looking for nice and elegant architectural solution for ASP.NET MVC 4 Background operations.
My goal is developing some world that lives its own life and clients can only interact with it. For ...
0
votes
2answers
69 views
Run action only the first time the Home page is loaded
I have an ASP.NET MVC4 application. I want to load a temporary table on SQL Server when the users first access the application. After that, I would like that the user kept using the same temporary ...
0
votes
1answer
14 views
How to use google docviewer in an MVC application to read doc files?
How to use google docviewer in an MVC application to read doc files?
<iframe ...
0
votes
0answers
7 views
Changing user identity during an active SignalR connection — how to reconnect?
I'm having trouble with SignalR and users changing identity in an ASP.NET MVC 4 application. I'm using Forms authentication with a custom membership provider.
The view that I have SignalR on also has ...
1
vote
1answer
25 views
need to get success value using json
I need to now what should return from my controller to display the value of VID without refreshing and what in ...