Search

You searched for the word(s): userid:842723

Matching Posts

  • Re: Web Forms controls and MVC (again)

    Ben, Thanks for your reply - I am much clearer now on what the situation is. Sorry that it has taken me a while to say thanks.
    Posted to ASP.NET MVC (Forum) by Neil McCrossin on 3/3/2009
  • Re: Web Forms controls and MVC (again)

    Thanks jrmcoy for your reply. You have said that "it seems that ANY webcontrol can still be used for rendering purposes", but my point is that they actually work for more than just rendering, e.g. I have tested the GridView under ASP.NET MVC and the sorting and selecting work. What I'm wanting to know is why all the explanations I have found on the web say that functionality such as this doesn't work under ASP.NET MVC. Maybe what they mean is that it is not recommended to use this
    Posted to ASP.NET MVC (Forum) by Neil McCrossin on 2/9/2009
  • Web Forms controls and MVC (again)

    I have posted this question in this forum before ( http://forums.asp.net/t/1365376.aspx ), but as I didn't get any replies I am re-wording it to be a bit more provocative (and I may even slightly overuse CAPITAL LETTERS) in the hope of goading people into replying :-) Please consider the following quotes (I have added the italics to the parts of the quotes that I refer to below). The first is from the author of a book on ASP.NET and the second is from a Microsoft MVP, in other words, both are
    Posted to ASP.NET MVC (Forum) by Neil McCrossin on 2/2/2009
  • Re: Difficulties unit testing code which uses HtmlHelper.ActionList()

    Thanks Jacques, that did the trick. Once I had got past that hurdle, I just had to add a few more methods to the dummy classes and it worked. Here is the final class I ended up with: using System; using System.Web; using System.Web.Routing; using System.Web.Mvc; namespace TaskList.Tests { class HtmlHelperFactory { public static HtmlHelper CreateInstance(Controller controller) { RouteCollection routes = new RouteCollection(); MvcApplication.RegisterRoutes(routes); HttpContextBase httpContext = new
    Posted to ASP.NET MVC (Forum) by Neil McCrossin on 12/3/2008
  • Difficulties unit testing code which uses HtmlHelper.ActionList()

    I have started using the HtmlHelper.ActionLink() method in an application (in the middle of some code that generates HTML based on database records) and it works fine, but I want to unit test the code that is using it. Therefore I don't want it to be in the view class, I want it to be in another class that is called by the view class and that is under unit tests. However, in order to construct an instance of the HtmlHelper class for use in the unit tests, I need a ViewContext (I can't see
    Posted to ASP.NET MVC (Forum) by Neil McCrossin on 12/3/2008
    Filed under: "ASP.NET MVC" HtmlHelper ActionLink "Unit Tests"
Page 1 of 1 (5 items)