Skip to main content

Questions tagged [asp.net-mvc5]

Filter by
Sorted by
Tagged with
2 votes
4 answers
1k views

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 ...
GianMS's user avatar
  • 201
1 vote
2 answers
2k views

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 ...
Rida Iftikhar's user avatar
0 votes
2 answers
1k views

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 ...
David Maisuradze's user avatar
3 votes
1 answer
11k views

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 ...
niico's user avatar
  • 241
0 votes
2 answers
530 views

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 ...
Comp23555's user avatar
1 vote
0 answers
175 views

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 ...
JᴀʏMᴇᴇ's user avatar
1 vote
2 answers
1k views

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 ...
Achilles's user avatar
  • 455
5 votes
1 answer
2k views

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 ...
Wade73's user avatar
  • 191
0 votes
2 answers
619 views

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 ...
Linger's user avatar
  • 299
0 votes
1 answer
3k views

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="...
niico's user avatar
  • 241
1 vote
1 answer
54 views

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 ...
Dave Kelly's user avatar
8 votes
4 answers
5k views

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 ...
adam78's user avatar
  • 311
0 votes
1 answer
146 views

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 ...
Cornwell's user avatar
  • 117
2 votes
2 answers
165 views

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 ...
Bojan's user avatar
  • 131
59 votes
4 answers
74k views

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? ...
Natalie's user avatar
  • 727
1 vote
1 answer
910 views

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 ...
Wim Ombelets's user avatar
2 votes
2 answers
2k views

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 ...
Vini's user avatar
  • 216
1 vote
1 answer
911 views

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 ...
chatters's user avatar
2 votes
1 answer
3k views

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 ...
Dan Beaulieu's user avatar