Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:689786
More Search Options
RSS Available
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)
WindowsClient:
HTTP 403.9 with ADO.NET Data Services
WindowsClient:
xml syntax highlighting in Silverlight
Channel 9:
Channel 9 Emerges in China
WindowsClient:
Overlaying Icons on the Windows 7 Taskbar with WPF 4
Channel 9:
The Outlook calendar starts in 1601 - But Why?
ASP.NET:
Bytes by MSDN: Brad Abrams Interview with Billy Hollis: Silverlight 4, RIA Services and VS2010
Mix Online:
Pictures or it Didn't Happen
Channel 9:
Reactive Extensions API in depth: even more Zip
TechNet Edge:
SDL For Agile
Mix Online:
Test Lab Note
Channel 9:
Enabling Help in the Visual Studio 2010 Shell
Channel 9:
Office Casual - Smart Art
WindowsClient:
Prism and MEF
IIS.NET:
Overcoming the Challenges Enterprises Face with Streaming Video
Silverlight:
MEF, Silverlight and the HVP
TechNet Edge:
Client and Cloud Security
TechNet Edge:
Client and Cloud Security
Channel 9:
Building on Azure: Persistent Systems
Channel 9:
Building on Azure: Persistent Systems
TechNet Edge:
AD RMS Certificate Hierarchy and the Protection Process
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online