Questions tagged [asp.net-mvc5]
The asp.net-mvc5 tag has no summary.
19 questions
2
votes
4
answers
1k
views
How to automate certains tasks in a web application?
I'm working on my final project for a course named Web Applications in ASP.NET.
Basically, it's a web application for shopkeepers to manage their clients' money accounts in their stores.
In order to ...
1
vote
2
answers
2k
views
Encrypt data in code or stored procedures?
I'm working on a Web App where the data is quite sensitive and is required to be encrypted before it is stored in the database.
Now there are two ways through which I can achieve this:
Encrypt data ...
0
votes
2
answers
1k
views
Asp.Net Mvc 5 / Web Api 2 unit testing data access layer
Let's say I have IRepository interface implemented by Repository class(uses database context to implement IRepository methods). And IUnitOfWork interface implemented by UnitOfWork class using ...
3
votes
1
answer
11k
views
MVC - Problems with passing ViewModel directly to / from repository
I have an ASP.NET MVC 5 site.
I have several complex view models - usually subsets of a far larger model. Should I create items in the repository that take the ViewModels - then just use Dapper.net ...
0
votes
2
answers
530
views
Should I use role-based authentication?
I have 3 types of users who might login to my website: Admin, Instructor, Student.
I already have tables for Students and Instructors , and each one has its unique properties .
Now I want to ...
1
vote
0
answers
175
views
MVC remote validation approach
I have a model, the model has 2 strings; foo and bar.
foo is what it is, it will be one of x amount of possible values (it's not an enum, though).
bar is entered by the user, so I want to validate ...
1
vote
2
answers
1k
views
Where to store translations for values to their corresponding display texts?
This is probably a naive question but I'm trying to figure out the industry best practice for working with magic numbers and their corresponding display texts. For example, whether a transaction is ...
5
votes
1
answer
2k
views
Plugin Strategy For MVC 5 Site
I am working on setting up a multi-tenant site, where users can select a theme. Each of these themes have different settings, so I would like someone to be able to select a theme and then when they ...
0
votes
2
answers
619
views
Handling User Specific Information in a Web Application
I have some information about a user I need to store and access in an ASP.NET MVC 5 application. Here are some of the things that I will need to store/access:
Theme choice
If they want to show panel ...
0
votes
1
answer
3k
views
asp.net MVC 5 - Does it matter if my ModelState is not valid & I don't need it to be?
I have a top10 table (like top 10 restaurants say). Each top 10 row can have up to 10 top10items associated.
Models
public class Top10
{
public Guid Id { get; set; }
[Required(ErrorMessage="...
1
vote
1
answer
54
views
Should I create a new Model for a filtered view of Existing model?
I am new to MVC, and just inherited a project that is still in it's early stages.
The scope is a user interface to manage a single SQL table. There is a model that represents the entire table (select ...
8
votes
4
answers
5k
views
Correct Way to Implementing Authorization Checks in ASP MVC
In ASP MVC we have the Authorize attribute to perform check at either a controller level or at a controller method level. But what if you need to do check permissions inside a controller method e.g ...
0
votes
1
answer
146
views
Questions regarding my MVC application
I'm learning .net MVC while developing a simple word list - Eg. When you learn a new language and create a list of words related to a certain topic.
I don't think I'm following the rules or good ...
2
votes
2
answers
165
views
Proper MVC5 Layered Implementation
I am fairly new to MVC5 Development and I have been doing a lot of reading about Layered Design, DI, IoC, etc... I feel that I am getting a grasp of concepts, however when it comes down to writing a ...
59
votes
4
answers
74k
views
Should I be using both AngularJS and ASP.NET MVC?
I started learning AngularJS and ASP.NET MVC, but am not sure why to use them both together in the same project?
Aren't they both MVC frameworks? Should I be using them both in the same application? ...
1
vote
1
answer
910
views
Databaseless ASP.NET MVC 5 on top of an external REST API
Where you would envision an out-of the-box ASP.NET MVC 5 web application on top of an MSSQL database, I have now been placed in a situation where I'm supposed to use custom external token endpoints ...
2
votes
2
answers
2k
views
ModelState Validation vs JQuery vs Remote
I was stuck with some validations for quite a while. I have been thoroughly searching the internet to find ways to apply the validations I require. I came across many methods for validations even ...
1
vote
1
answer
911
views
Entity Framework 6 and Stored Procedures
I'm new to Entity Framework, and currently developing an MVC 5 application with Code-First Entity Framework 6.1.2.
I need to write custom reports. Instead of writing complex linq, I can write a ...
2
votes
1
answer
3k
views
How do you handle saving blog tags in MVC?
I'm writing my own blog engine as a learning exercise. The blog is fairly functional right now but I'm trying to add a 'tag' feature to it and I'm confused as to what the best way to handle saving a ...