I've tried about a half dozen times to comment out markup code, but the compiler (when I hit CTL+F5 or during intellisense) always behaves as if the commenting is not there. For example, on CTL+F5, the following code yields the error "The ID 'Login1' is already used by another control", even though the commented code is a green color. When I remove the "commented" code, it compiles ok, though I have to compile twice, as if it takes a while to realize the green code is gone. Is it the ASP.NET code varations? Do the standard HTML comments not work with the ASP.NET tags?
Code:
<asp:Login ID="Login1" runat="server" DestinationPageUrl="~/TEST1/QTEST1.aspx">
</asp:Login>
<!-- <asp:Login ID="Login1" runat="server" CreateUserText="Register New Login"
CreateUserUrl="SignUp.aspx" DestinationPageUrl="~/TEST1/QTEST1.aspx">
</asp:Login> -->