Convert Selected Code to User Control via Context Menu VS2012

As you can see on the context menu, you have the option to use "Extract to User Control".  You can access this after highlighting some html and then right clicking.  Seeing that was completely unexpected, but in a good way.  After you select it, it  immediately moves the selected code to a User Control,  registers the created User Control with that page, then puts a placeholder for it in the same spot you previous code used to be.  Creating User Controls by hand it a bit annoying, so this is a great time saver.



Comments

Popular posts from this blog

Asp.net Publishing Broke Site - "App_WebReferences is not allowed because the application is precompiled"

Telerik - Custom Group Footers In RadGrid