Search

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

Matching Posts

  • Re: Migration from MVC 2 Preview 2 with multi-project areas to MVC 2 Beta

    Yes, ASP.NET MVC 2 will be compiled against ASP.NET 3.5 SP1. 1) Effectively, yes. 2) Quite possibly, yes. We haven't made any firm commitments to any features for ASP.NET MVC 3.
    Posted to ASP.NET MVC (Forum) by Haacked on 11/24/2009
  • Re: Migration from MVC 2 Preview 2 with multi-project areas to MVC 2 Beta

    I plan to write a blog post to cover this in much more detail, but I can give you my short answer now. There are three options as I see it: 1. With ASP.NET MVC 2, you can still define area registrations in another Class Library project. What's changed is we don't include a build task to copy Views into the main project. So if you are fine with defining your views in your main project, but routes and areas in other class library projects referenced by the main project, you can still have most
    Posted to ASP.NET MVC (Forum) by Haacked on 11/23/2009
    Filed under: ASP.NET MVC, Areas
  • ASP.NET MVC 2 Beta Released

    Hi all, We released the Beta for ASP.NET MVC 2 this morning! Download: http://go.microsoft.com/fwlink/?LinkID=157068 Announcement Blog Post: http://haacked.com/archive/2009/11/17/asp.net-mvc-2-beta-released.aspx Source code and Futures: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=36054 This release works with Visual Studio 2008 SP1 & Visual Web Developer 2008 SP1.
    Posted to ASP.NET MVC (Forum) by Haacked on 11/17/2009
    Filed under: ASP.NET MVC, asp.net
  • Re: How to Lookup Route Name

    Unfortunately that's not possible. The route name is used by the RouteCollection as an internal index and it's not a property of the Route itself. One thing you could do is add the route name to the DataTokens dictionary of the route. DataTokens is a lot like the Tag property of the control. It's not used to affect routing, but simply carries metadata about a route.
    Posted to ASP.NET 4 Beta 2 (Forum) by Haacked on 11/12/2009
  • Re: EditorFor and client-side validation

    I left the following comment to your blog post: Let's say we did render the label and validation message in that case. Wouldn't you be surprised by that? Because what happens now if you decide you want to render these things in a table. And thus you want to control where the validation message is located in relation to the input field. How would you do that if Html.EditorFor(model => model.FirstName) by default rendered all three of these things? BTW, one thing you could do is write a
    Posted to ASP.NET MVC (Forum) by Haacked on 10/11/2009
  • ASP.NET MVC 2 Preview 2 Released!

    Hi all, We released Preview 2 for ASP.NET MVC 2 last night! Download: http://go.microsoft.com/fwlink/?LinkID=154414 Announcement Blog Post: http://haacked.com/archive/2009/10/01/asp.net-mvc-preview-2-released.aspx Source Code and Futures: http://aspnet.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33836 Roadmap: http://aspnet.codeplex.com/Wiki/View.aspx?title=Road%20Map&referringTitle=Home This release works with Visual Studio 2008 SP1 & Visual Web Developer 2008 SP1. We have new walkthroughs
    Posted to ASP.NET MVC (Forum) by Haacked on 10/1/2009
    Filed under: "ASP.NET MVC" HtmlHelper ActionLink "Unit Tests"
  • Re: Load XML file on MVC

    Try making that method an extension method of HtmlHelper. Then within the method, you can access: htmlHelper.ViewContext.HttpContext.Server.MapPath("product.xml") My VB skills are weak, but I think it would look like: Public Class XMLHelper Inherits System.Web.Mvc.Controller <Extension> _ Public Shared Function ReadXmlFile(ByVal htmlHelper as HtmlHelper) As String Dim xmlFilePath as string = htmlHelper.ViewContext.HttpContext.Server.MapPath("~/product.xml") Dim xmlDoc As
    Posted to ASP.NET MVC (Forum) by Haacked on 8/14/2009
  • Re: Hyphens in Routes?

    In the future, try the Route Debugger to help you hash out routing issues. It also now includes the ability to test URL generation.
    Posted to ASP.NET MVC (Forum) by Haacked on 8/14/2009
  • Re: A bug in MVC Textbox

    This is a known issue. Why are you grabbing the values from the FormCollection in this case? Why not simply supply Controller arguments of the same name? <ValidateInput(False), AcceptVerbs(HttpVerbs.Post)> _ Public Function Index(ByVal first_name as string, ByVal last_name as string) If Not _IService.Validate(first_name, last_name) Then TempData("first_name") = first_name TempData("last_name") = last_name Return View() Else End If Return View() End Function you'll have
    Posted to ASP.NET MVC (Forum) by Haacked on 8/14/2009
  • Re: Route URL Legal Characters

    Hi there. This KB article talks about this in more depth: http://support.microsoft.com/kb/932552 . There's a registry setting you can use to turn off this blocking. In ASP.NET 4.0, we will have an easier way to configure this.
    Posted to ASP.NET MVC (Forum) by Haacked on 7/20/2009
Page 1 of 39 (388 items) 1 2 3 4 5 Next > ... Last »