View Single Post
  #1 (permalink)  
Old November 3rd, 2011, 03:48 PM
BobRoberts BobRoberts is offline
Registered User
Points: 87, Level: 1
Points: 87, Level: 1 Points: 87, Level: 1 Points: 87, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2011
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default VWD 2010 Not Recognizing HTML Comments

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?

 <asp:Login ID="Login1" runat="server" DestinationPageUrl="~/TEST1/QTEST1.aspx">
   <!--  <asp:Login ID="Login1" runat="server" CreateUserText="Register New Login" 
    CreateUserUrl="SignUp.aspx" DestinationPageUrl="~/TEST1/QTEST1.aspx">
  </asp:Login>  -->
Reply With Quote