Bug tracker: Create the BugTrackerLayout view
The BugTrackerLayout view is used as a template for the other views in the Bug Tracker application. To create the layout view:
- In Visual Studio, navigate to the Areas » BugTracker » Views » Shared`` folder, create a new file with the
cshtmlextension.
Name the classBugTrackerLayout. - Add
usingstatements to the following namespace:Telerik.Web.Mvc.UI. - Define the main HTML structure by adding the
html,head, andbodytags. - Add the style sheets for the Telerik MVC extensions.
The Telerik MVC extensions make use of predefined style sheets in order to style the controls created by them. In this example, you add a link to thetelerik.common.cssand thetelerik.windows7.cssfiles. Adding the style sheet references in this view makes them accessible in the other views. To add a link to a style sheet, you must perform the following: - Define the HTML for the layout view.
- Specify where the child views are rendered by calling the
RenderBodymethod of the view.
GITHUB EXAMPLE: For more information about the content of the file, see the BugTrackerLayout.cshtml file of the downloaded sample project.
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.