Browse by Tags

Related Posts

  • Deployment project can compile when view is strongly typed to List<string>

    I need to deploy an ASP.NET MVC project, and I use the web deployment projects to do so. The app compiles and runs fine, but the deployment project has a problem with a strongly typed view in the project. it is of type System.Web.Mvc.ViewPage<List<string>> and the error message is: Could...
    Posted to ASP.NET MVC (Forum) by random0xff on 02-18-2009, 12:00 AM
    Filed under: MVC, viewpage, deploying mvc applications, generics
  • HttpContext --- What it does ? (MVC View Unit Testing)

    Hi all, I have a problem with the following code.. I am trying write unit test the view pages of MV... My code is executing without an error but it returns null value when call the RenderView method... Can any one please help me with this ? My code is as follows. private static string RenderView(string...
    Posted to ASP.NET MVC (Forum) by foiaz on 11-10-2008, 12:00 AM
    Filed under: mvc view, MVC ViewPage, mvc viewpage visualstudio, nunit, view engines, viewdata, viewname ViewContext, viewpage, ViewResult, .net.3.5, aps.net mvc, ASP.NET mvc, ASP.NET MVC ViewPage UserAgent, ASP.NET MVC, iview, mocks, Mocks HttpContext, Unit Test
  • Html Helper object is null?

    Hello all, I'm using .Net 3.5 with Preview 4. I'm trying to make a simple form thusly: <% using (Html.Form("UsersController", "Create")) { %> <!-- Form stuff here --> <% } %> However, it throws an error at that first line saying that Html is null. I'm...
    Posted to ASP.NET MVC (Forum) by MattGrande on 08-19-2008, 12:00 AM
    Filed under: view, viewpage, .mvc extension, .net.3.5, htmlhelper, mvc preview 4, ASP.NET mvc
  • Will there be a light(er)weight ViewPage?

    For those that don't know, ViewPage inherits from our old friend: System.Web.UI.Page. The Page class is quite the mound of code!... with the obsolete things, async framework, ClientScript, postbacks framework,... the list goes on. My point here is that it doesn't seem that the System.Web.UI.Page...
    Posted to ASP.NET MVC (Forum) by theozco on 08-14-2008, 12:00 AM
    Filed under: page, System.Web.UI.Page, viewpage, inheritance
  • Re: Testing Model, Controller and View

    Hi, thank you for all your responses! The main aim of my view test should be to test if all the controls (i.e. textboxes, dropdown ...) contains the corret values from the model. To do this with an automated test would be a great advantage. I think after this "basic" view test the UAT can start...
    Posted to ASP.NET MVC (Forum) by Zhou on 03-26-2008, 12:00 AM
    Filed under: viewpage, Unit Test
  • Testing Model, Controller and View

    Hi, I have implemented a small web application with the MVC Framework and now I'm trying to test the solution with Unit tests and Rhino.Mocks (I know that is not the TDD approach ... ). Everything is fine, I have test cases for my model and for my controller with mock objects. But how can I test...
    Posted to ASP.NET MVC (Forum) by Zhou on 03-25-2008, 12:00 AM
    Filed under: MVC, Rhino.Mock, viewpage, Unit Test
  • Typed ViewPage Using Generics Without Code Behind

    I've successfully created .aspx view pages without code behind by replacing the first line with this: <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %> However, trying to change it to inherit the generics to get typed view data like the following doesn't seem...
    Posted to ASP.NET MVC (Forum) by ghotiman on 12-13-2007, 12:00 AM
    Filed under: MVC, viewdata, viewpage, generic, generics, typedview
  • Displaying users

    i user gravatar for user avatar on my site but when i display users the are show in a list i need the users to look like GRAVATAR GRAVATR GRAVATAR GRAVATAR username username username username
    Posted to ASP.NET MVC (Forum) by dukon360 on 03-13-2009, 12:00 AM
    Filed under: viewdata, viewpage, Views, "ASP.NET MVC"
  • How to pass ViewData to Views ?

    Am trying to unit test the MVC Views. How to pass the ViewData from controller to Views ? What is the logic behind Render View.. which gets populated with the ViewData ? Thanks in advance
    Posted to ASP.NET MVC (Forum) by foiaz on 11-06-2008, 12:00 AM
    Filed under: mvc view, MVC view data, MVC ViewPage, mvc viewpage visualstudio, nunit, view, viewdata, viewpage, Views, .net.3.5, aps.net mvc, Url Routing
  • Re: Testing Model, Controller and View

    Yes, that is correct. The context comes from HTTPContext.Current and HTTPContext is a sealed class and is not mockable.... very bad.
    Posted to ASP.NET MVC (Forum) by Zhou on 03-26-2008, 12:00 AM
    Filed under: MVC, Rhino.Mock, viewpage, Unit Test
Page 1 of 2 (11 items) 1 2 Next >