Razor Pages Demo

This page demonstrates Razor Pages features in .NET 10

Page Information

Page Model: RazorModel

Current Time: Tuesday, October 20, 2026 2:49:19 PM

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: 21436077-4080-7208-9e2f-843ac2154bd9

Last Request Method: GET

Current Count: 0

Form Submitted: No

Sample Data List

ID Name Category Status Created
1 Sample Item 1 Data Active 5/21/2026
2 Sample Item 2 Publication Active 12/2/2025
3 Sample Item 3 Policy Active 4/17/2026
4 Sample Item 4 Publication Inactive 7/20/2026
5 Sample Item 5 Policy Active 9/16/2026
6 Sample Item 6 Policy Active 4/5/2026
7 Sample Item 7 Publication Active 12/1/2025
8 Sample Item 8 Event Inactive 7/31/2026
9 Sample Item 9 Research Active 4/15/2026
10 Sample Item 10 Research Inactive 8/18/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