Razor Pages Demo

This page demonstrates Razor Pages features in .NET 10

Page Information

Page Model: RazorModel

Current Time: Wednesday, October 21, 2026 10:46:23 AM

Request Path: /razor

User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)

Server Environment

Environment: Production

.NET Version: .NET 10.0.11

OS: Microsoft Windows 10.0.17763

Machine: PICES5

Interactive Form

Submission Counter

0

forms submitted this session


Debug Info:

Session ID: 6a29613d-aaa7-1c83-5d6d-598e5ab91470

Last Request Method: GET

Current Count: 0

Form Submitted: No

Sample Data List

ID Name Category Status Created
1 Sample Item 1 Publication Inactive 12/25/2025
2 Sample Item 2 Event Inactive 3/8/2026
3 Sample Item 3 Data Inactive 4/6/2026
4 Sample Item 4 Data Active 6/19/2026
5 Sample Item 5 Policy Inactive 7/5/2026
6 Sample Item 6 Data Active 1/22/2026
7 Sample Item 7 Event Active 7/25/2026
8 Sample Item 8 Policy Active 12/2/2025
9 Sample Item 9 Research Active 6/7/2026
10 Sample Item 10 Data Active 2/12/2026

About This Page

This Razor Page demonstrates several features:

  • Page Model: Server-side data binding and logic
  • Form Handling: POST requests with model validation
  • Tag Helpers: asp-for, asp-validation-for
  • Session State: Counter persists across requests
  • Data Display: Loops, conditionals, and formatting
  • Bootstrap 5: Responsive design with cards and tables

File Location: Pages/Razor.cshtml + Pages/Razor.cshtml.cs