Search

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

Matching Posts

  • Re: RenderView issue in MVC Preview 2

    Ah! Sweet! Now I just got to fiure out how to use it. Would be great in the future to have something simple like a RenderPartial(string path, RouteValueDictionary values) and a RenderText(string text). The RenderPartial should also be usable from a view so it would be possible to perhaps re-use some code like an input form or something. Just wishful thinking here
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/13/2008
  • Re: RenderView issue in MVC Preview 2

    [quote user="rjcox"] Have you tied to look for yourself (Reflector's search function is great for this kind of thing)? [/quote] Actually: yes, yes I have. Even used Lutz Roeder's .NET Reflector tool and added all the dll's in the "Microsoft ASP.NET MVC Preview 2\Assemblies" to it. So if they exist they are well hidden, and if they have existed they are not included in the MVC Preview 2 framework anymore. And yes I'm totally new to the whole .NET Microsoft world
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/12/2008
  • Re: RenderView issue in MVC Preview 2

    Ok it worked.. but it's not a pretty solution: RedirectToAction( new System.Web.Routing. RouteValueDictionary ( new { Action = "List" , category = product.Category.CategoryName })); Coming from Ruby On Rails I would have prefered passing an argument hash directly: RedirectToAction("List", {category => product.Category.CategoryName}); Also... where are all the nifty "RenderPartial(test.aspx)", "RenderText("hello")" methods? I'm using the
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/12/2008
  • Re: UpdateFrom in MVC Preview 2

    Hmmm... yeah. That worked for my Create method: public void Create() { Product product = new Product (); BindingHelperExtensions .UpdateFrom(product, Request.Form); northwind.AddProduct(product); northwind.SubmitChanges(); RedirectToAction( "List" ); } But in my Add method I still have to do this: public void Update( int id, string ProductName, int CategoryID, int SupplierID, Decimal UnitPrice) { Product product = northwind.GetProductById(id); product.ProductName = ProductName; product
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/12/2008
  • RenderView issue in MVC Preview 2

    I've ben following Scott Guthrie's tutuorials on how to build a MVC app, bt some tings he did back then doesn't really work anymore. E.g: <%= Html.ActionLink(category.CategoryName, new { action="List", category.CategoryName}) %> I figured this one out myself (yey!) and instead I used: <% = Html.ActionLink(category.CategoryName, "List" , new { Controller= "Products" , category=category.CategoryName })%> no worries, perfectly logical.. But something
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/12/2008
  • Re: UpdateFrom in MVC Preview 2

    So how would be the "correct" way to update an object? I mean instead of doing the following: public void Create() { Product product = new Product (); product.UpdateFrom(Request.Form); northwind.AddProduct(product); northwind.SubmitChanges(); RedirectToAction( "List" ); } You would do it like?
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/12/2008
  • Re: Passing objects from controller to view

    Sweet! now everything is working as it should. Don't think I'll try making web-applications in IronRuby, but it's good to know that the IronRuby project exist. The coding standard at my current company is C# so we are gonna try and use that as much as possible. But with the MVC framework.. most things feel very "rubyesque" so I think I will feel at home after a couple of weeks anyways ;) Thanks for your help!
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/10/2008
  • Passing objects from controller to view

    Hi there! I've been developing web-applications in RoR for a while and saw that .NET now had support for MVC based applications. So I started to fiddle around some with the examples and passing simple data such as strings and integers via a controller to its corresponding view works like a charm. But trying to pass an object.. not so charming. This is my controller: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Web; 5 using System.Web.Mvc; 6 7 namespace
    Posted to ASP.NET MVC (Forum) by kombatsanta on 3/7/2008
Page 1 of 1 (8 items)