4
votes
0answers
104 views
Extend Razor Partial View from nopCommerce plugin
I'm working on a nopCommerce plugin project. nopCommerce is build on MVC4 using Razor Syntax.
I need to extend one of the partial view from plugin/extension I'm building. However, I can't think of ...
4
votes
0answers
308 views
Application_Start does not respond to RegisterAllAreas()
I'm new on MVC Application, please help me.
I have an Application on Visual Studio 2012 using Framework 4.0 on a Windows 7 pc and I'm debugging in IIS Express.
Starting debugging, my application ...
3
votes
0answers
15 views
Unobtrusive client validation data attributes are not rendered for nested property rules
Using FluentValidation 4.4, the following rules emit the correct unobtrusive validation data attributes on input fields:
RuleFor(e => e.PrimaryContact).NotEmpty();
rendering the following html:
...
3
votes
0answers
115 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 ...
3
votes
0answers
123 views
How can I update related tables?
My project involves creating a new hotel room and 2 tables in my database will update. My tables are called RoomType and RoomFacility.
I can successfully update RoomType, but when I try to update ...
3
votes
0answers
98 views
Role-based navigation display in MVC4 Bootstrap Sample
How are you supposed to conditionally display menu items based on roles in the Bootstrap Sample project? I was thinking of doing the following
Implement INavigatonRouteFilter - really just ...
3
votes
0answers
193 views
Add values to ModelMetadata.AdditionalValues when using EditorFor
If I have a convention to change the editor and set some values
public class MetadataProvider : DataAnnotationsModelMetadataProvider
{
protected override ModelMetadata ...
2
votes
0answers
258 views
MVC4 Simple Membership authentication with multiple databases or providers
I'm working on an MVC4 site using SimpleMembership to handle user accounts and role based authentication. We have another site and we'd like to implement a single sign on system allowing users from ...
2
votes
0answers
248 views
How to handle jQuery event on an ASP.net MVC Ajax loaded page?
i've got an issue.
I'm a newbie in the world of jQuery Mobile, and with the ASP.Net MVC part I'm a little bit lost.
Here is my problem: In my mobile web site I want to change the navbar (that I use ...
2
votes
0answers
123 views
One to many relationships using Web service & local database MVC view
I am currently working on an assignment at university from which I unfortunatly lost some code to not long ago.
In particular it is where I have specific products display to a specific store, the code ...
2
votes
0answers
497 views
MVC 4 OAuth: How to get e-mail address
I am developing an MVC 4 app and use the OAuth providers provided by MS, but I would like to get an e-mail address for every user. For Google (default) and Facebook (using FacebookClient) I already ...
2
votes
0answers
319 views
SignalR client disconnect/connect on every refresh of pages. ASP.NET MVC
I am creating a chat embedded in my asp.net mvc 4 project. I have an online users ul list wich add a user on OnConnected and remove it on OnDisconnected.
So, my app doesnt are a SinglePage app, wich ...
2
votes
0answers
511 views
The name 'Url' does not exist in the current context
I created MVC 4 project, and got this error on the following string:
<span>@Url.RouteUrl(route)</span>
My Web.config part:
<pages>
<namespaces>
<add ...
2
votes
0answers
76 views
Different behavior between SessionTempDataProvider and CookieTempDataProvider
The short version of all this is that I'm using TempData to store feedback messages and after switching to using CookieTempDataProvider they don't show up when using the a PRG pattern, but if I revert ...
2
votes
0answers
166 views
RenderAction and Partials with output caching
I am currently setting up my mvc4 web application and have a question regarding using Partial views and Render Action.
If I apply output caching to a controller action method, will that save a ...