Tagged Questions

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

learn more… | top users | synonyms

2
votes
0answers
24 views

Wrapper for jquery ajax to ensure redirects occur on clientside

Recently I had the need to make some ajax calls within a MVC 3.0 with Razor and jQuery application. After a bit of trial and error and refactoring it was discovered that a number of different needs ...
1
vote
2answers
119 views

Search and Filter in MVC3 Razor I am using Linq, is there a better way to do this

Heres my Code and it works fine. I just dont like all the If else, what If I keep adding field to filter, its going to get messy. Ps: I am not using EF and cannot on this. Thanks. CONTROLLER CODE ...
3
votes
3answers
89 views

What standard should I use for the naming of my MVC controller services?

I have the following: public class ContentsController : BaseController { private IContentService _content; private IPageService pageService; private IReferenceService ...
3
votes
1answer
68 views

Creating a list of pairs after splitting the string containing all of the sets

I am working on asp.net/MVC and I need to read a value from my web.config file. Splitting the list into multiple keys is not an option. <add key="DepartAssign" value="Depart1:PersonAssignTo1; ...
3
votes
1answer
145 views

Asp.net MVC login method

I wrote this login method: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel logModel, string returnUrl) { if (!ModelState.IsValid) { ...
2
votes
3answers
74 views

Self populating view models

So I have a view model (asp.net mcv 3 app) that when instantiated with a particular parameter, populates it's properties via a couple of calls to a web service in it's constructor. public class ...
5
votes
2answers
201 views

Is there a better way of writing this action method using Linq?

I have an ASP.Net MVC3 web application that displays a list of parts (A part is a simple entity with a number and a description). I have updated the action method to support filtering and paging: ...
8
votes
3answers
143 views

What's “The Right Way” to Separate Models and ViewModels?

I have a central domain assembly which contains various rich domain models. Lots of business logic, etc. To keep this example simple, here's probably the simplest one: public class Location { ...
0
votes
0answers
54 views

Choosing AsyncController vs Controller leveraging Tasks?

So I think I have this right, but I wanted to check anyway. I have an mvc action method, I want this method to return the ActionResult extremely fast. So the browser is not waiting around. That being ...
4
votes
2answers
354 views

ASP.NET MVC using an N-Tier Model and DDD

Any comments are welcome. However I'd like to call specific attention to my... interpretation of the N-Tier application architecture and how I'm consuming data. Note that the namespacing and inline ...
1
vote
0answers
78 views

Amazon s3 pass through controller

Some background, I am building a website that uses amazon s3 to host its image (and other) files. I required that images displayed on the website look like they come from my site and not from amazon ...
1
vote
2answers
293 views

Many to many crud using entity framework 4.1

My view submits data to the controller using Json objects which contains child objects.It allows users to add/remove/modify the relationship with child entities(authors,categories,LIbraryBookCopy). ...
5
votes
1answer
136 views

This LINQ Model Query seems extremely inefficient

I'm new to LINQ, but I have some background in T-SQL. I know there are probably 100 different ways to design a T-SQL statement that would run this much more efficiently, but I'm not sure how I would ...
2
votes
0answers
167 views

Review of Fluent LinkedIn REST API client interface design

There is a handful of LinkedIn clients written in C# on the NuGet package library, but afaict most only do authentication via LinkedIn. I found a couple which offer a linkedin rest api interface. Of ...
2
votes
0answers
169 views

Custom Authentication Attribute, seems to work fine but is there any drawbacks?

I was trying to find a way to redirect to different pages on authorization and authentication failure. I found this to be a possible solution. However, I ended with a different solution by myself. It ...

1 2 3 4
15 30 50 per page