Skip to main content
Home  › ... 2sxc Apps

Details using Automatic View-Switching

You now see the details page. The code is even shorter, because it is using a query, which already does the look-for-id. The image to the right shows where this configuration is applied to the view.

Details of Douglas Adams

back to list

Source Code of this file

Below you'll see the source code of the file. Note that we're just showing the main part, and hiding some parts of the file which are not relevant for understanding the essentials. Click to expand the code

@inherits Custom.Hybrid.Razor14
<!-- unimportant stuff, hidden -->
Details using Automatic View-Switching... <!-- unimportant stuff, hidden -->

<img loading="lazy" src="@Content.Mugshot?w=50&h=50&mode=crop" width="50px" style="border-radius: 50%" class="float-left">
<h3>Details of @Content.FirstName @Content.LastName</h3>
<a href='@Link.To(parameters: "data621=true")'>back to list</a>

<!-- unimportant stuff, hidden -->