In asp.net mvc 2 I need to get programatically all the views thar are strongly typed, and show a list for views that are not strongly typed.
How can I do that?
Thanks In Advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Strongly-typed views inherit from System.Web.Mvc.ViewPage. Untyped views inherit from System.Web.Mvc.ViewPage. N.B. ViewPage inherits from ViewPage. You would have to load up the compiled assembly containing the views (generated via aspnet_compiler.exe) and then run the following LINQ-to-Objects queries: