Quantcast
Channel: Question and Answer » asp.net-mvc-4
Browsing all 15 articles
Browse latest View live

Is it faster to query using linq-to-entities or a data adapter?

I’m creating an MVC application in VS2012 and I reverse-engineered the models from existing Oracle tables. The tables are part of a MASSIVE database. Besides the main tables that I need to insert,...

View Article



Approach to send data updates to subscriber clients C#

We would want to send timely emails to subscribers about updates/changes to the database. What would be an optimum approach to this. Is considering SignalR a good path? Example: Let us say we have a...

View Article

Why does a custom action filter need to inherit from both...

I m first time creating a custom action filter and following this link http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-custom-action-filters They are saying to Extend...

View Article

MVC: Where is the right place to set error messages?

I have a ASP.NET MVC application where in all my Models have an Errors Property used to store non-validation errors which I than display in my Views. Where is the right place to populate the error list...

View Article

Knowing who is the user in every request (every action, every view, every time)

I have many model classes that are mapped from/to tables using EF. Two of them are User and UserCookie, which are stored in tables Users and UserCookies. public class User { public long UserId { get;...

View Article


passing different models to view based on razor theme engine

I’m using a pattern similar to the one here to implement a Themed View Engine. Basically instead of having a View folder, I have a Theme folder and inside different themes: default, red, blue, green,...

View Article

AngularJs with ASP.NET MVC – How to create solution structure [on hold]

How and where to place Angular controller files in the ASP.Net MVC solution structure which can be easy to find and maintain?

View Article

Proper use of model in asp mvc

What is a proper use of model in asp mvc? Should a model contain only data that will be accessed inside a form, or it is also a good idea to put data that are static and would be used in a view, but...

View Article


Implementing internal own authentication

Let me apologize first if this topic is too subjective, or not concrete enough. I want to implement a login api for an internal web service at my company using asp web api 2. I know how to implement a...

View Article


Image may be NSFW.
Clik here to view.

Top Menu bar driving a sidebar sub menu

I have an application written is C# ASP.NET MVC 4 with Razor views. I am a bit stuck on my menu structure. As per the image above, one can see that there is a Top Menu and a Side Menu. The standard...

View Article

Sharing authorization logic between ASP.NET MVC 4 and WebAPI 2 projects

Pretty similar to this question here the current application that we are working on has a separate MVC 4 and WebApi 2 projects, where the MVC project is processing the user request to the WebApi which...

View Article

How can I reinforce that security questions answers should not be the same...

When my users are creating an account they need to fill and set several security questions pertaining to their account. I am wondering, how can I make sure that the answer the user enters for each...

View Article

Best approach in preventing the execution of an action in asp.net mvc [on hold]

What is the best approach in preventing to have an error page when clicking on any of the link of the page while the page is still loading? We always encounter this espcially if the link has something...

View Article


Migrating large silverlight business application to MVC

I have the task to migrate a large silverlight business application in a new living technology. I had choosed asp.net MVC and web api. As we know, silverlight uses MVVM design pattern whereas asp.net...

View Article

When starting a new ASP.NET application, what changes when I change from .Net...

Using Visual Studio 2015 update 2, creating a new ASP.NET 4.x application, the default .Net “Target framework version” is 4.5. Is it a mistake to bump this to 4.6? I did my own research, and I am...

View Article

Browsing all 15 articles
Browse latest View live


Latest Images