This is a migrated thread and some comments may be shown as answers.

[Solved] Where can I download the samples with Razor Views?

3 Answers 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Max
Top achievements
Rank 1
Max asked on 20 Oct 2011, 05:54 PM
hi all

Where can I download the samples with Razor Views?

Thank you

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 21 Oct 2011, 06:09 AM
Hello Max,

 The Razor views are shipped with the rest of the examples. Check the Areas/Razor folder.

Kind regards,
Atanas Korchev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
0
Max
Top achievements
Rank 1
answered on 21 Oct 2011, 03:33 PM
When I debug the samples it reads the aspx files, not the razor ones.
Anything I am missing? thank you
0
Accepted
Dimo
Telerik team
answered on 21 Oct 2011, 04:19 PM
Hi Max,

By default, the WebForms view engine is used in our MVC demos. However, you can easily access the Razor demos by adding "razor" after the application's main folder in the browser's address bar, for example:

http://localhost/Telerik.Mvc.Examples/razor/

Alternatively, open a random demo and click on the RAZOR link below the example (where the "About this example" text is).

Yet another option is to modify the Global.asax file and change the default route:

routes.MapRoute(
                "Default",
                "{area}/{controller}/{action}/{id}",
                new { area = "razor", controller = "Home", action = "FirstLook", id = "" });

Note that in this case you will not be able to access the WebForms demos.

Greetings,
Dimo
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
General Discussions
Asked by
Max
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Max
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or