BUG: commented out server side controls in html still run

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The following control still runs
<!--<asp:linkbutton id="Test" runat="server" text="Create Text file"
onclick="Test_Click" />-->

if you change the "asp" to "zsp" the page fails immediately.

this is a bug
 
adolf garlic said:
The following control still runs
<!--<asp:linkbutton id="Test" runat="server" text="Create Text file"
onclick="Test_Click" />-->

if you change the "asp" to "zsp" the page fails immediately.

No, it's not. It's documented. Use server-side comments to hide server-side
code:

<%-- <button runat="server" id="MyButton" OnServerClick="MyButton_Click">
Click here for enlightenment!
</button>
--%>

Note that they cannot be nested.

John Saunders
 
Back
Top