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.razorfile. You can place it under
Pages\, or wherever you would like. If you place it in another location, be sure to modify
_Imports.razorwith the new namespace.
- Derive your page from
@@inherits BasePage. Add the title of your page to the
- Modify the
@@pagedirective 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.
[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 the
Users.razorpage as an example.
Table of Contents
- Initial Setup
- Project Structure
- Entity Framework
- User Interface
- Email Service
- Background Workers
- Creating a new Page
- Publishing to Azure