BUG: commented out server side controls in html still run

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
 
J

John Saunders

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top