Search

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

Matching Posts

  • Re: Why JQuery Why Not Enhance ASP.NET Ajax

    [quote user="SGWellens"]It's not being distributed with MVC[/quote] Actually it *is* being distributed in the ASP.NET MVC 1.0 package, and it will also be included in Visual Studio 2010.
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 4/7/2009
  • Re: OutputCache not caching

    Oh, and the other thing is that you must specify VaryByParam and Duration. You can use VaryByParam="*" to vary by all querystring and form params, or VaryByParam="none" not to vary at all.
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/24/2009
  • Re: OutputCache not caching

    Sayao, which URLs does [OutputCache] seem not to work on? If it doesn't work on the root URL (i.e., ~/), but it does work on all other URLs, then that's because of a limitation of how ASP.NET output caching and route handling need to work together. The solution - if it's just the root URL that won't cache - is to remove or rename the Default.aspx file that appears in the root of your project. You should find that everything starts working in Visual Studio 2008 Service Pack 1's
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/24/2009
  • Re: Indirect Validations?

    Luis, I have no reason to disagree with you, but I'd be interested to see an example of where the behaviour and the data are so disconnected from one another. Perhaps that would be a good subject for a blog post from you
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/5/2009
  • Re: Indirect Validations?

    Hi there Unfortunately, as you mention, the compiler doesn't support lambda expressions as constructor parameters for attribute literals. You could instead use syntax like this (though I know it isn't as appealing): public interface IPresentationModelA { [IndirectValidation( typeof (IDomainModelX), "Property1" ) ] string FormField1 { get ; set ; } } My gut feel about this is that I'm not sure it's going to be worth it. Is there really a lot of benefit in separating presentation
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/5/2009
  • Re: Error using "Add View..." context menu

    (Oops, sorry for the double-post. The first time I posted, it said "There was a problem processing your request", so I reposted thinking that it hadn't taken effect. Also, I'm not sure why it's lost all my formatting.)
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/2/2009
  • Re: Error using "Add View..." context menu

    [quote user="jeloff"]I could not reproduce the error.[/quote] I think I've figured out how to reproduce this, and have written it up at http://www.codeplex.com/aspnet/WorkItem/View.aspx?WorkItemId=3135 Looks like you can work around it as follows: 1) Close and reopen the solution 2) The first time you choose "Add View", the popup will appear. Be sure to specify a master page! Even if you don't want to use one, specify one and *then* uncheck "Select master page"
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 2/2/2009
  • Re: How to use Model Binder to retrieve values from client ?

    [quote user="denniszeng2008"]The control in my website can be dynamicly added by users, Which mean the user can add multiple textbox to input the additional data at will. And this make be annoyed. In such a case, May I use model binder to simplify the development ?[/quote] Yes, you can still use the model binder. See http://blog.codeville.net/2008/12/22/editing-a-variable-length-list-of-items-in-aspnet-mvc/
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 1/13/2009
  • Re: Is Controller a Singleton Pattern

    Hi hnchan No, by default, the framework's DefaultControllerFactory creates a new controller instance to handle each request. This is similar to how WebForms creates a new Page instance to handle each request. So there's one controller instance per request, and if you have multiple simultaneous requests for the same controller, there'll be multiple simultaneous controller instances. If you want to reuse controller instances across requests, you can implement your own controller factory
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 9/17/2008
  • Re: Html Pager Helper

    Hi Miguel You can't really make it into a simple HTML helper, because you're defining its output using a view template. Simple HTML helpers are just C# methods that return a string. However, you can make it into a reusable partial view. First, create a new "MVC View User Control" at /Views/Shared/Pager.ascx, derive it from ViewUserControl<PagerViewData>, and copy in the template you posted. Then invoke it like this: <% Html.RenderPartial( "~/Views/Shared/Pager.ascx"
    Posted to ASP.NET MVC (Forum) by SteveSanderson on 9/11/2008
Page 1 of 12 (118 items) 1 2 3 4 5 Next > ... Last »