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 (3)

0
votes
1answer
7 views

Can I have more than one action in a single routemap?

I have the following route set up: context.MapRoute( "MyAccount_default", "MyAccount/{controller}/{action}/{id}", new { action = "Index", id = UrlParameter.Optional } ...
0
votes
0answers
19 views

Why does CSS caching not work?

I created a simple MVC 3.0 application. I want to cache a CSS file. Here is my code: [OutputCache(Duration = 30, VaryByParam = "none")] public ActionResult Index() { return View(); ...
1
vote
0answers
10 views

Unauthorized AJAX request succeeds

I have following controller method: [HttpPost] [Authorize(Roles="some_role_actual_user_is_NOT_in") public ActionResult AJAXMethod() { return Json(new { message = "server message"); } and page ...
1
vote
0answers
19 views

Adding user info to session data right when user logins

I currently have the following login script: [HttpPost] public ActionResult LogOn(LogOnModel model) { if (ModelState.IsValid) { if ...
1
vote
1answer
30 views

New Table row every 4th loop

How do I create a new table row on every 4th loop in my Razor View? This is creating a new row for each number before 4, and then quits creating new rows: @{ int i = 0; } ...
1
vote
2answers
24 views

Thread safe caching

I am trying to analyze what problem i might be having with unsafe threading in my code. In my mvc3 webapplication i try to the following: // Caching code public static class CacheExtensions { ...
1
vote
0answers
25 views

How to retrieve only an ASP.NET MVC3 Collection's Count without element properties

I am using ASP.NET MVC 3 to track hits on a set of stored links. I run into problems when displaying the hits' counts. I think this is because since I am using lazy loading, whenever I call ...
0
votes
1answer
45 views

Null Parameter Error

I am having a problem calling an Edit method in an application I am creating. In the view an ActionLink is clicked that should be passing the order number to the Edit method as a parameter and opening ...
0
votes
1answer
18 views

MVC Mailer pass a model to the mail view

I'm using the MVC Mailer - I have this in my controller: // // POST: /ExhibitorInterest/Create [HttpPost] public ActionResult Create(ExhibitorInterest exhibitorinterest) { ...
0
votes
1answer
13 views

ASP.NET MVC 3: Are multiple nested Views with @section not supported in @RenderSection?

Here is my setup in ASP.NET MVC 3: Master Page --(RenderBody)-> Index View --(Html.Action)-> Partial View. The Master Page has a @RenderSection and the Partial View has a @section block but the ...
1
vote
1answer
30 views

Data validation with entity framework

I am using ADO.Net entity framework with asp.net mvc3. I have a model which is database first. The data validation does not work in some cases, as I will explain. I have a form, when I submit that ...
1
vote
0answers
15 views

Trouble injecting factory into custom membership provider in ASP.NET MVC 3 with Ninject 3.0.0 with Factory extension

I am creating an ASP.NET MVC 3 webapp that has a custom membership provider. I am using Ninject.Extensions.Factory 3.0.0 to try to inject a factory into a public property on my custom membership ...
0
votes
1answer
17 views

How to add a Model object into my AJAX.ActionLink

I have an Html.ActionLink that I need to post to the server: @Html.ActionLink("Some Text", "controller", "service", Model, new { @class = "btn btn-primary", @id = "someText" }) I tried Turning this ...
-2
votes
5answers
43 views

Read the first column values of a HTML table with jquery

I got a table: <table id="ItemsTable" >​ <tbody> <tr> <th> Number </th> <th> Number2 </th> </tr> ...
1
vote
2answers
16 views

ASP.NET MVC 3 DataBinder.Eval on Viewmodel object throws “does not contain property”

I have a view that was using a standard Model but now I need to add information from two different models on the page. I created a ViewModel after doing some research to handle this. Now I am ...

1 2 3 4 5 1875
15 30 50 per page