Search

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

Matching Posts

  • Re: Enumerate all views in a site

    Got it in the end: foreach ( Type type in this .GetType().BaseType.Assembly.GetTypes()) { if (type.IsSubclassOf( typeof (System.Web.Mvc. ViewMasterPage ))) { //These are all our master pages Response.Write( "-- " + type.Name + "<br/>" ); }
    Posted to ASP.NET MVC (Forum) by Padgett on 11/6/2008
  • Re: Enumerate all views in a site

    Hi Eilon, I'm working on a CMS and I'd like the user to be able to select the master page they 'inherit' from when creating new content pages I can see three ways to do this: Use the MVC object model to somehow enumerate the available master pages Go to the file system and load any .master pages from a given directory Use reflection and get any type that is or inherits from ViewMasterPage. Attempting method (3) I get some unexpected results: foreach ( Type type in Assembly .GetExecutingAssembly
    Posted to ASP.NET MVC (Forum) by Padgett on 11/5/2008
  • Enumerate all views in a site

    I'm trying to enumerate all views in a site without having to use reflection. The closest thing I can find is: ViewEngines .DefaultEngine.FindView( ) but this assumes you know the view you are looking for upfront. Is there a simple way to do this?
    Posted to ASP.NET MVC (Forum) by Padgett on 11/3/2008
  • Re: ValidatorCalloutExtendor throws Sys.ArgumentUndefinedException inside UpdatePanel

    fahadaz, I'm getting the same error, did you ever find out what caused it?
    Posted to ASP.NET AJAX UI (Forum) by Padgett on 3/4/2007
  • Re: Serving suggestion

    HardyE - this sounds perfect, I will give it a go. Cheers for the detailed response.
    Posted to CSS Friendly Control Adapters (Forum) by Padgett on 11/1/2006
  • Serving suggestion

    I’d like to make a suggestion in regards to how this project is packaged. This is aimed at those who want to add Css based controls to their existing project and are not concerned with how it all works. In addition to your source and example packages, I’d love to see a ‘redistributable’ package. This would contain just the elements needed to override the rendering of the controls. I see this as being: a) A single dll with which to reference in our existing projects. This dll
    Posted to CSS Friendly Control Adapters (Forum) by Padgett on 10/31/2006
Page 1 of 1 (6 items)