Relative Content

Tag Archive for asp.net.netasp.net-mvcrazor-pagesmodel-validation

How to get value to text field after model validation message

The PurchaseOrderNumber is generated by another function and is automatically filled in the relevant field when creating a purchase order. However, if the form submission fails due to validation errors, the PurchaseOrderNumber is removed from the field. When the page is refreshed, a new PurchaseOrderNumber is generated. What could be causing this issue, and how can it be resolved?