4
votes
4answers
7k views

ASP.NET MVC $.post call returning string…need help with format for jqGrid

I'm trying to dynamically populate a dropdown for the jqGrid when the user is editing data. I have it pretty much working however, there is one value in the dropdown call "undefined". I suspect this ...
47
votes
4answers
33k views

How do I create a custom membership provider for ASP.NET MVC 2?

How do I create a custom membership for ASP.NET MVC 2 based on the ASP.NET membership provider?
120
votes
9answers
36k views

Can you overload controller methods in ASP.Net MVC?

Im curious to see if you can overload controller methods in ASP.Net MVC. Whenever I try, I get the error below. The two methods accept different arguements. Is this something that cannot be done? ...
51
votes
4answers
54k views

How to post an array of complex objects with JSON, jQuery to ASP.NET MVC Controller?

My current code looks like the following. How can I pass my array to the controller and what kind of parameters must my controller action accept? function getplaceholders() { var placeholders = ...
0
votes
8answers
1k views

Why Interface Layer/Abstract classes required in our project? [closed]

We normally use abstract function/Interfaces in our projects. Why it is really needed? Why can't we just go for Business logic Layer, Data Access Layer and Presentation Layer only Function in ...
212
votes
19answers
51k views

NUnit vs Visual Studio 2008's Test Projects for Unit Testing? [closed]

I am going to be starting up a new project at work and want to get into unit testing. We will be using VS 2008, C#, and the ASP.NET MVC stuff. I am looking at using either NUnit or the built in test ...
72
votes
4answers
20k views

How to secure an ASP.NET Web API

I'm wanting to build a RESTful web service using ASP.NET Web API that third-party developers will use to access my application's data. I've read quite a lot about OAuth and it seems to be the ...
80
votes
4answers
57k views

How to RedirectToAction in ASP.NET MVC without losing request data

Using ASP.NET MVC there are situations (such as form submission) that may require a RedirectToAction. One such situation is when you encounter validation errors after a form submission and need to ...
108
votes
6answers
178k views

HTML.ActionLink method

Let's say I have a class public class ItemController:Controller { public ActionResult Login(int id) { return View("Hi", id); } } On a page that is not located at ...
64
votes
22answers
90k views

How can I get this ASP.NET MVC SelectList to work?

I create a selectList in my controller, to display in the view. I'm trying to create it on the fly, sorta thing .. like this... myViewData.PageOptionsDropDown = new SelectList(new [] {"10", ...
34
votes
7answers
18k views

Redirecting unauthorized controller in ASP.NET MVC

I have a controller in ASP.NET MVC that I've restricted to the admin role: [Authorize(Roles = "Admin")] public class TestController : Controller { ... If a user who is not in the Admin role ...
28
votes
4answers
11k views

Views in separate assemblies in ASP.NET MVC

I'm trying to create a webapplication where I want to be able to plug-in separate assemblies. I'm using MVC preview 4 combined with Unity for dependency injection, which I use to create the ...
68
votes
1answer
13k views

Facebook/ Twitter with dotnetopenauth? [closed]

I've pretty much got OpenID working using the DotNetOpenAuth library. Now I would like users to be able to use Facebook and Twitter to login. This requires OAuth so I am looking for a tutorial on ...
16
votes
2answers
13k views

Sharing sessions across applications using the ASP.NET Session State Service

I am trying to share sessions between two web applications, both hosted on the same server. One is a .net 2.0 web forms application the other is as .net 3.5 MVC2 application. Both apps have their ...
48
votes
5answers
48k views

ASP.NET MVC Razor: How to render a Razor Partial View's HTML inside the controller action

How to generate a HTML of a given partial view on ASP.NET view engine is known. But if this functionality is used on razor partial view it does not work, as exception says the partial view does not ...

1 2 3 4 5 101
15 30 50 per page