How to swap attributes ID and runat in all tags in my Visual Studio 2008 solution?
Was
<asp:Label ID="Label1" runat="server" />
became
<asp:Label runat="server" ID="Label1" />
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Find and Replace, enable Use of Regular expressions.
Find what:
Replace with:
Use {} to tag sub-expressions within regular expression. The meaning of find part is: find one or more characters that aren’t quotation marks after ID=” and up to next quotation mark and tag it as sub-expression.
In replace, you use \1 to denote the first sub-expression found and that’s the tag id.
Edit: Add a single space character in front of search and replace expressions, to avoid matching something like:
ContentPlaceHolderID="MainContent" runat="server".