The ASP.NET MVC Framework is a Microsoft web application framework that implements the model-view-controller (MVC) pattern. Based on ASP.NET, it allows software developers to build a Web application as a composition of three roles: Model, View and Controller. A model represents the state of a ...
0
votes
0answers
2 views
How to make more MapHttpRoutes for MVC 4 Api
I have 2 API routes for my API atm, but I want to add more, and the way I am doing it it seems to overwrite each other, , so in the code I pasted, only the CreateUser route works.
public ...
0
votes
0answers
11 views
How to deal with Database Column with DEFAULT value in SPA(ASP.NET MVC SPA)
Code First Class:
public class Product
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int ProductId{ get; set; }
[MaxLength(256), Required]
public string ProductName { ...
0
votes
0answers
13 views
Lightest way to run IIS on Mac?
I have an ASP.NET MVC 4 app that I would like to run on a Mac machine. I would hate to run a full blown Windows virtual machine when all I really need is IIS7 to run the MVC app. What is the lightest ...
0
votes
1answer
13 views
Privilege Elevation in an MVC3 web application
I have a requirement to implement user privilege elevation in an MVC3 web app, for both Forms and Windows authentication. This is for a higher privileged user to give assistance to a lower privileged ...
1
vote
2answers
35 views
What does this code of rendersection mean?
I am a beginner in Asp.Net MVC3. Can anybody please explain what is meant by this code:
@section head
{
@RenderSection("head", false)
}
On ScottGu's article:
...
0
votes
4answers
40 views
Error when using .Contains to check if a string contains a character
I am trying to find out if a string contains a character. I tried the following
where ViewBag.Options is a string:
@ViewBag.Options.Contains('q')
but it gives me an error saying:
The best ...
0
votes
1answer
13 views
ajax call to wcf from asp.net mvc
I have two apps. The first is WCF Service, the second is asp.net MVC 3 app.
In the WCF app I have a interface:
[ServiceContract]
public interface IService1
{
[OperationContract]
...
0
votes
1answer
27 views
Initialize BaseController's fields using HttpContext, unit test, controller structure design
I need to setup a policy for all controller instance in base controller, like below:
public class BaseController : Controller
{
private IPolicy Policy;
public BaseController()
...
3
votes
0answers
31 views
Creation of a Mini-Pluggable Architecture with a “Plugin Registry” using Type Initialization, Concurrent Access, and Reflection
I have need for some basic "pluggable" architecture, and was curious if my assumptions and idea for an implementation are as I believe they are. The basic process for setting up a "Plugin Registry" ...
1
vote
5answers
63 views
What's the deal with custom ASP.NET MembershipProviders?
I'm hoping someone can help me wrap my head around what's going on when I try to implement a custom MembershipProvider. This is probably more of a theory question than a code question...here's what I ...
0
votes
1answer
10 views
How do I get the current Url from within a FilterAttribute?
I am writing an Authorize filter attribute adn I'm having trouble figuring out how to get the current url as a string so I can pass it as a parameter to the LogOn action. The goal is that if a user ...
0
votes
1answer
14 views
System.Web.mvc.HtmlHelper does not contain a definition for EnumDropDownListFor
I have been following this tutorial http://blogs.msdn.com/b/stuartleeks/archive/2010/05/21/asp-net-mvc-creating-a-dropdownlist-helper-for-enums.aspx but I run into the error "System.Web.Mvc.HtmlHelper ...
0
votes
0answers
15 views
Setup Asp.Net Mvc 4 SPA with CouchDB
I am learning Asp.Net Mvc (4) and would like to use CouchDB with it. I have seen some examples for couch and c#/asp.net but I haven't been able to find any good examples on use with asp.net mvc. My ...
0
votes
2answers
26 views
How can I make this jquery ajax form accept the individual values to work as a generic dialog
I have several links which open a dialog when clicked.
What I still need is to pass individual parameters to the dialog, because depending on its individual content I need another title, height, ...
6
votes
2answers
47 views
Client Side MVC Frameworks (Backbone, Knockout, etc.) and Validation
I am experimenting with different client side MVC frameworks right now (mainly Backbone and Knockout). I am trying to come up with a way to validate. I have MVC 4 Web API that returns data only. All ...