Questions tagged [asp.net-mvc-3]

ASP.NET MVC 3 is the third major version of Model-View-Controller extension for developing web applications in a .NET framework

Filter by
Sorted by
Tagged with
5
votes
3answers
22k views

ASP.NET MVC using Repository pattern

I am just trying to use ASP.NET MVC using repository pattern. Am I doing something wrong here? Model - Contains the model ...
3
votes
2answers
2k views

ASP.NET MVC using Repository pattern - code review

I am just trying to use ASP.NET MVC using repository pattern. Could somebody see If I am doing something wrong here. Model - Contains the model ...
2
votes
2answers
304 views

Creating 28 checkboxes with a common name and different values

There are 28 check boxes that are given a common name and have different values: <input type="checkbox" name="Schedules" id="checkbox1" value="1"> In ...
6
votes
1answer
481 views

The way to realise data access

There are a several articles about true data access in MVC. I tried to make the best one according to the architecture flexibility. My way is following: ADO .NET Entity Data Model (*.edmx from Entity ...
4
votes
1answer
358 views

Need help with cleaning up this Controller

I've written the following controller and i was looking for some input/advice on how i could go about cleaning this up or rewriting it. I feel like i'm repeating myself a lot or that there might be a ...
11
votes
1answer
4k views

Implementing a generic DropDownList attribute and templating solution

My goal was to be able to render my view models using a standard Object.cshtml editor and display template. In order to do so I needed to be able to always call <...
2
votes
1answer
242 views

Using IDisposable to stripe a table

What are your thoughts on using an IDisposable to stripe an HTML table like so? It's a blatant abuse of IDisposable but this ...
9
votes
2answers
10k views

Conditional string building

Essentially I'm taking a number of checkboxes off of my view, adding them to a Dictionary<string, bool>, and writing out the ...
4
votes
2answers
693 views

Controller for searching with certain parameters

In the index view a user can search with any combination of one to all of the following parameters: firstname, lastname or ...
2
votes
1answer
935 views

Use of Ninject and an injectable DataLayer in MVC3

I'm trying to make an MVC3 application with an exchangeable data layer. I currently have this in a single file (Global.asax.cs) for brievity. It seems to be working as I want but as I'm new to DI I ...
38
votes
7answers
141k views

Dynamic filtering and sorting with Entity Framework

I'm developing an application using ASP.NET MVC 3 and Entity Framework 4.1. In that application I have a lot of paged lists. Users can filter and sort these lists. This results in code like the one ...
4
votes
4answers
498 views

Email confirmation model

Email<input type="text" id="email" /><br /> Re-enter Email<input type="text" id="confirm-email" /> I'm thinking that I want a model so that I ...
14
votes
2answers
1k views

“Pluggable” routes in ASP.NET MVC

How do I handle multi-tenancy with routes in ASP.NET MVC? The application is a multitenant ASP.NET MVC 3 application. Tenants are identified based on hostname so this does not interfere with routing. ...
4
votes
3answers
354 views

Is this a proper use of a services project and an ASP.NET MVC controller? [closed]

I'm a little unsure as to what code belongs in the services and what belongs in the controllers. Lets say I'm creating a website that requires a fine grained level of permissions (e.g. a user has ...
6
votes
3answers
693 views

Not feeling 100% about my Controller design.

Basically, I'm uploading an excel file and parsing the information then displaying what was parsed in a view. ...

1
2