Creating a Page
If you have read through all the documentation pages, you should have a pretty good idea of what is involved with creating a new page. It could not be simpler:
- Create a new
PageName.razor
file. You can place it underPages\
, or wherever you would like. If you place it in another location, be sure to modify_Imports.razor
with the new namespace. - Derive your page from
BasePage
using@@inherits BasePage
. Add the title of your page to theTitle
property. - Modify the
@@page
directive and set your navigation path. - Create a new localization resource in
Resources\Pages\
. Be sure to follow the same exact relative path, because otherwise your translations will not be discovered. - Inject any services that you need.
- Use
[Authorization]
if this is not a public page. - If your page implements CRUD operations for a database table, create a new entity class and run the migration step as described under Entity Framework. Then simply implement your new page to display the data using Blazorise's
DataTable
. You can use theUsers.razor
page as an example.
Table of Contents
- Initial Setup
- Project Structure
- Configuration
- Identity
- Entity Framework
- Authorization
- Api
- User Interface
- Logging
- Email Service
- Background Workers
- Localization
- Services
- Creating a new Page
- Publishing to Azure
- Upgrading