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)

8
votes
0answers
145 views

Context Switching in IsReusable Property

IsReusable Property Below is my understanding for IsReusable Property If the handler returns static content. it is safe to set the value to true. But if the thread returns dynamic content, to make ...
7
votes
0answers
2k views

Validation type names in unobtrusive client validation rules must be unique

Validation type names in unobtrusive client validation rules must be unique. The following validation type was seen more than once: required This is referring to the EmailAddress property, ...
6
votes
0answers
444 views

How to get the HTML of ASP.NET MVC 3 page into a QUnit test?

I've started using QUnit for testing the jQuery code of a certain page in my ASP.NET MVC3 application. So far I've provided a HTML-mock which the javascript-file under test uses. Is it possible to ...
4
votes
0answers
152 views

Extend Razor Partial View from nopCommerce plugin

I'm working on a nopCommerce plugin project. nopCommerce is build on MVC4 using Razor Syntax. I need to extend one of the partial view from plugin/extension I'm building. However, I can't think of ...
4
votes
0answers
885 views

Using OpenID in ASP.Net MVC3, where do I get the user data?

I realize OpenID is somewhat of a behemoth, or more complex than a typical registration form, but I feel I'm missing something here. According to this question, I'm supposed to save the unique ...
4
votes
0answers
366 views

How do I use MiniProfiler with a single page web app / REST backend?

I have a single page javascript application (done with JavascriptMvc) and a backend with REST services built on top of ASP.NET MVC3 (done with NServiceMVC). The REST services have MiniProfiler ...
3
votes
0answers
56 views

Generating Checkbox Lists with MVC3 using a complex viewmodel and a cross table

I've inherited my first MVC project and it involves using MVC3 on top of Linq to SQL. I've been trying to find a way to generate a check box list based on a many to many relationship involving a cross ...
3
votes
0answers
137 views

Get metadata of model (TableName) in mvc4 Using t4 Scaffolding

Using MVC4 and T4 Template(Scaffolding) I am creating a model in mvc4 and specify the table name in DBContext. 1)I need to get the table from Dbcontext against model name. 2)Need to get value from ...
3
votes
0answers
86 views

Should I never call HostingEnvironment.UnregisterObject?

While trying to implement asyncronous email over smtp in my ASP.Net MVC 3 application I've come around SO SmtpClient.SendAsync blocking my ASP.NET MVC Request thread. There I found the article by Phil ...
3
votes
0answers
121 views

mvc 3 page with pdf - scrollbars / loaded

We want to have a page with an embeded pdf file, and below a confirm button that the user has read the file. With <object name="pdf" id="pdf" data="@Url.Action("GetPDF", Model)" ...
3
votes
0answers
410 views

Expression of type System.Web.Mvc.MvcWebRazorHostFactory cannot be used for return type System.Web.WebPages.Razor.WebRazorHostFactory

I am working on MVC3 razor project. my solution was running correctly but now it compile correctly but show error at run time. Following error is show please give me help to resolve it. Expression of ...
3
votes
0answers
287 views

ASP.NET 4.3 Scaffolding: Add Controller vs Add View - different behavior?

I am trying to dig into ASP.NET MVC 3, using the standard tutorials in the web, and I encounter a strage problem. Currently, I am following the samples in a book, using a "Movie" class with movie ...
3
votes
0answers
200 views

How do I maintain the type of items in a collection of a base type across postbacks?

I have a base class, a set of subclasses and a collection container that I am using to create and populate controls dynamically using partial views. // base class public class SQControl { [Key] ...
3
votes
0answers
3k views

Nested BeginCollectionItem

I'm using Steve Sanderson's BeginCollectionItem approach to add dynamic content. Everything works fine when I'm doing it on the first level. However, when try to implement a nested collection meaning ...
3
votes
0answers
211 views

Scaffolding support in Sharp Architecture 2.0

have they dropped support for scaffolding in SA 2.0. i have downloaded the templify-project. I installed templify and created a solution but the project structure it created did not include tools and ...

1 2 3 4 5 485
15 30 50 per page