
Using the Segment Feature
Segment is an attribute that can be applied to ASPX pages. When this feature is enabled, all path parts that appear after the aspx file path are treated as segments and routed to the same executing page. Segment is one of the innovative ideas of the Elanat team. By enabling Segment, you gain full control over URL paths. Enabling Segment Razor Syntax @page +@segment <!DOCTYPE html> <html> ... Standard ASPX Syntax < %@ Page Segment= "true" % > <!DOCTYPE html> <html> ... How Segment Works If you enable Segment on the following path: /page/about.aspx Any additional path parts after this address will be considered segments, and the executable file /page/about.aspx will still be executed. Example /page/about.aspx/segment1/segment2/.../segmentN If Segment is enabled on a file such as: /page/about/Default.aspx You can still access it using both of the following formats: /page/about/Default.aspx/segment1/segment2/.../segmentN or /page/about/segment1/segment2/.../segmentN Accessing Segment Value
Continue reading on Dev.to Tutorial
Opens in a new tab



