Understanding Forms

HTMX, and HTML in general, assume that forms are independent units and that a page may contain multiple forms. However, ASP.Net, specifically WebForms, operates with a single form that encompasses the entire page. Understanding this distinction is crucial to avoid issues with nested forms.

When working with forms for validation we've added the concept of a 'Lava Form'. These forms are independent and make up for the fact that you can't have multiple form tags on your page. You can wrap the markup of your forms in a <lava-form /> tag.

Last updated