Search

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

Matching Posts

  • Dynamic Areas and/or nested areas

    Hullo, i'm stumbling blindly around MVC 2 RC and wondering if I can have dynamic areas. That is I want to on appstart read some info from my db and define n number of (unique) areas. Areas seem to be a bit concrete atm, am I forced to use this "Areas" folder? Also I am wondering if I can have nested areas (which might just an area with one more forward slashes in its' name). To put this in some context my app has a series of products defined in a database, each of these products
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 12/27/2009
  • Re: The "throw" keyword

    I've since learned from the horses mouth, this is by design (from the ever-more-accessible MS .net dev team).
    Posted to C# (Forum) by worldspawn[] on 12/11/2009
  • Re: The "throw" keyword

    Cool thanks for the affirmation. Nice to know i'm not crazy Sent an email to Haack and Guthrie, maybe we'll hear from them. Plz vote up this bug here: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=519110
    Posted to C# (Forum) by worldspawn[] on 12/8/2009
  • Re: The "throw" keyword

    Hey you're write, in this console example it does work as expected... it appears to be a problem that occurs in an ASP.Net app only. See this example: using System; using System.Web.Mvc; namespace Shivam.MVC.Reporting.Testing.Controllers { public class HomeController : Controller { public ActionResult Index() { try { throw new Exception("OMG Ex"); } catch { throw; } return View(); } } } And the stacktrace is: [Exception: OMG Ex] Shivam.MVC.Reporting.Testing.Controllers.HomeController
    Posted to C# (Forum) by worldspawn[] on 12/7/2009
  • Re: Model Binding against a collection

    In my Get action method? I'll give it a try...
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 12/6/2009
  • Re: Model Binding to and abstract/interface type

    Yeh, I am using service locator. But i'm new to it so i'm avoiding any new use cases with it. I'm using a bastardised form of Sharp Architecture with LLBLGen. 'Tis pretty cool.
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 12/6/2009
  • The "throw" keyword

    Hi, Consider this example: try { DoSomethingExceptional(); } catch(Exception){ PerformSomeActionLikeLogging(); throw; } I read once/saw in a presentation long long ago that using "throw;" just like that on it's own is supposed to rethrow the original exception. Which it sort of does, however, with it's current implementation its absolutely useless. Why? Because it does rethrow the original exception except the line number provided in the exception detail is the line of the "throw"
    Posted to C# (Forum) by worldspawn[] on 12/6/2009
  • Model Binding against a collection

    Hi folks, I'm having a problem with model binding to a collection. The problem is it only seems to work one way (writes only). Heres my code: <% foreach (var item in Model.InstituteDetails){ %> <div class="instituteDetail"> <div class="field"> <label for="">Name of person / department</label> <%= Html.TextBoxIDP(string.Format("instituteDetails[{0}].AttentionTo", Model.InstituteDetails.IndexOf(item)), null, new { maxlength
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 12/5/2009
  • Model Binding to and from an abstract/interface type

    Like the title says you can't do this out of the box. You need someway of telling the model binder what the strong type is. Presenting (working title) WeakBinder: public class WeakBinder : DataAnnotationsModelBinder { protected override object CreateModel(ControllerContext controllerContext, ModelBindingContext bindingContext, System.Type modelType) { if (modelType.IsInterface || modelType.IsAbstract) if (bindingContext.ValueProvider.ContainsKey(bindingContext.ModelName + ".BindingType"
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 12/5/2009
  • Re: Conditionally overriding ActionResults

    Yep thanks Augi, i'll move it to a ControllerActionInvoker. Cheers
    Posted to ASP.NET MVC (Forum) by worldspawn[] on 11/14/2009
Page 1 of 95 (941 items) 1 2 3 4 5 Next > ... Last »