Search

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

Matching Posts

  • Re: How to use Html.RenderAction with one controller?

    It depends what you're trying to do. I'd need to see some example code to give any further suggestions.
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/25/2009
  • Re: Validation: Design problem using ServiceLayer and ViewModel

    You don't need to pass the validationDictionary as ref. You could pass the prefix to ValidateTrackList! _trackListService.ValidateTrackList("TrackList.", trackList, validationDictionary); ... validationDictionary.AddError(prefix + "Description", "Track list description is required."); ... <%= Html.TextBox("TrackList.Name", "<list name>") %> <%= Html.ValidationMessage("TrackList.Name", "*")%> However in this
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/25/2009
  • Re: MVC 2 Beta - Possible Bug with new helpers.

    Unfortunately collections are not supported yet. You should however be able to pass in the id/name you want to the TextBoxFor method using htmlAttributes.
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/25/2009
  • Re: Testing for valid model

    Not sure how this applies to MVC at all... Step 1: Do the conversion. Create a Customer object from your source data. Step 2: Validate it. http://msdn.microsoft.com/en-us/library/cc511656.aspx
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/25/2009
  • Re: Can I loop over a DataTable in an aspx page?

    Yes... You're supposed to set dataTable to a DataTable. I thought that was too obvious to mention. What about it won't work? Did you try it? What error did you get?
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/24/2009
  • Re: retrieving routeData values in global.asax

    Too true. I didn't even read it. I just assumed he was doing this inside Application_BeginRequest. But he is *setting* the culture based on the route data even tho he has called the method "GetCulture". So if he moves this to the right even it should work. I still don't like the reference to HttpContext.Current tho.
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/24/2009
  • Re: retrieving routeData values in global.asax

    niceguy, you have it backwards. [quote user="nicequy"]Having a custom Route set culture seems almost like the wrong place for that kind of responsibility as you would HAVE to know that a particular Action is using the desired Route[/quote] Putting a filter on the Controller or the Action seems like the wrong place as you would HAVE to know whether the Route to that action contained the culture information (which it may not do) The Route seems like the perfect place for this because you
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/24/2009
  • Re: retrieving routeData values in global.asax

    The RouteHandler is another good place to put this, because you can specify it when you define the route.
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/24/2009
  • Re: How to use Html.RenderAction with one controller?

    No. a) You can do things with RenderAction that you can't do with strongly typed views or RenderPartial (which is why it exists) b) you don't know what functionality he desires so you can't say that. I prefer something like MvcContribs SubControllers because it is the Controller which decides which SubControllers the View is allowed to use, whereas with RenderAction the View can call any controller it wants. Nevertheless, the only way to do what the OP wants is to create your own version
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/24/2009
  • Re: Get Form value by model binding

    Or just... public ActionResult SearchMethod(string Text1, string Text2, string Text3) {
    Posted to ASP.NET MVC (Forum) by tgmdbm on 11/23/2009
Page 1 of 88 (872 items) 1 2 3 4 5 Next > ... Last »