Code Generation in ASP.NET
ReSharper allows you to generate content for ASP.NET web forms and master pages according to content placeholders defined in the related master page files.
To generate content for placeholders
- In the editor, open an .aspx or .master file and position the caret where you want to generate a Content control.
- Press Alt+Insert or choose in the main menu .
- In the Generate menu, choose Content for Placeholders.
- On the Generate content for masterpage's content placeholder page of the Generate wizard, select ContentPlaceHolder controls from a master page to generate related Content controls in the current file.
- As an option, use Copy default content, if ContentPlaceHolder control contains default content and you want to copy it to the content page.
- You can click Advanced and then Next to view exactly what controls will be created.
- Click Finish to complete the wizard.
tags based on
tags defined in a master page.