I have a site a few years old that contains about 30 aspx Web Form pages with code behind.
I want to add a common master page to all these with the minimum amount of work.
Essentially, I just need to add everything in the body tags to the Content Placeholder, and preserve the code behind.
Is there a fast way to do this?
Best Answer
For each page do the following - Add an attribute to the <@Page > tag named MasterPageFile="Your MasterPage Path" - Add the following tag - Remove html and head tags and their contents except body tag - Remove the body tags BUT KEEP its contetnts - Remove the form tag - Done