meJustAndrew
meJustAndrew

Reputation: 6623

Are there any alternatives to Master pages for Asp.Net web form?

As development of an ASP.NET Web Forms project rolls on, the code used in markup sometimes becomes repetitive.

Are master pages my only option to reuse that markup? Sometimes my Master page content won't refresh. Maybe it's time to replace it with something similar if it exists.

Upvotes: 1

Views: 1038

Answers (1)

Rahul
Rahul

Reputation: 77886

Yes, use a UserControl but that would be wired alternative cause in that case you will have to create separate usercontrol for header/footer/menu item ... etc and have them registered on each page separately using a @Register page directive.

Upvotes: 1

Related Questions