Questions tagged [asp.net-mvc-beta1]

8 questions
3
votes
2 answers

ASP.NET MVC Upgrade to Beta: IControllerFactory is defined in an assembly that is not referenced

I'm currently in the process of updating a site from preview 2 of ASP.NET MVC to the Beta release. I'm down to my last compile error with no solution in site after an exhaustive search. I have some code in Global.asax.cs which sets up IOC using the…
LaserJesus
  • 8,230
  • 7
  • 47
  • 65
3
votes
2 answers

ASP.NET MVC Beta 1 - Does It Support Strongly Typed View Data?

In previous releases there were 3 ways to pass data from controller to view AFAIK (shown below). I want to use method (2) with MVC Beta 1, but I can't find the renderView method. So what's the new syntax (if it's still possible)? Thanks in…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
2
votes
2 answers

Asp.net MVC Module binding with validation for Complex Types

I'm building a questionnaire app in asp.net mvc, and I'm having trouble with the module binder for a list of complex types. First: I can't get Questionnaire.IList.IList object graph to work with the binder. So in the sample…
Bernt
  • 249
  • 6
  • 12
2
votes
2 answers

MVC Beta [HandleError] Attribute (need help)

I've tried this both with and without the 'ExceptionType' parameter. I have an Error.aspx page in both the Views/Shared folder and the Views/thisController folder. But everytime I run this I get a "Server Error in '/' Application." error page,…
Jeff Keslinke
  • 4,278
  • 5
  • 30
  • 49
1
vote
3 answers

ASP.NET MVC & Ajax Control Toolkit

One of the things I like about coding "old skool" (web forms) is the AJAX Control Toolkit. I saw on the Microsoft Storefront video 14, Rob Conery uses the TextboxWatermark control. When I downloaded the code though, I couldn't find any reference to…
Christian Payne
  • 7,081
  • 5
  • 38
  • 59
1
vote
3 answers

Html.RadioButton sets all values to selected value

After tinkering around to solve [this][1] problem, I think the core of the problem is the following: When you use the Html.RadioButton() html helper with an Enum as value field, you can only choose your option once. AFter reposting the page, the…
Boris Callens
  • 90,659
  • 85
  • 207
  • 305
0
votes
1 answer

Testing in ASP.net MVC Beta 1

I'm wring a unit test for a controller and here is my code. public void DocumentController_IndexMethod_ShouldReturn_Documents() { DocumentsController c = new DocumentsController(_repository); ViewResult result =…
Dale Marshall
  • 1,137
  • 7
  • 20
  • 42
0
votes
4 answers

Bad idea to alter asp.net mvc framework autogenerated database?

Is it a bad idea (and if why?) to add a a column to the auto generated asp.net (ASPNETDB.MDF, visual studio 2008, mvc framework) "user roles - database"? (E.g I want to add the columns RealName and LastName to the aspnet_Users table in the…
Schildmeijer
  • 20,702
  • 12
  • 62
  • 79