|
|
|
start date: Fri, 27 Jul 2007 03:10:02 -0700,
posted on: microsoft.public.dotnet.framework.aspnet.webcontrols
back
| Thread Index |
|
1
Vipper
|
|
2
Riki
|
|
3
ThunderMusic
|
commenting aspx code
Hi,
This question seems a little silly, but I want to dissable code lines using
this way:
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
<!--<asp:Button ID="Button1" runat="server" Text="ButtonOld"
/></div>-->
But I get an error about a duplicate identificator.
How can I fix it?
Date:Fri, 27 Jul 2007 03:10:02 -0700
Author:
|
Re: commenting aspx code
Vipper wrote:
> Hi,
>
> This question seems a little silly, but I want to dissable code lines
> using this way:
>
> <asp:Button ID="Button1" runat="server" Text="Button" /></div>
> <!--<asp:Button ID="Button1" runat="server" Text="ButtonOld"
> /></div>-->
>
> But I get an error about a duplicate identificator.
> How can I fix it?
Use <%-- --%> tags for commenting out control tags.
--
Riki
Date:Sat, 28 Jul 2007 15:39:50 +0200
Author:
|
Re: commenting aspx code
hi,
actually, there are two problems in your code:
First, put a space between <!-- and <asp:Button and the same applies for the
end tag ( -->)
Second, you've included a </div> that did not start in your comment block
I hope it helps
ThunderMusic
"Vipper" wrote in message
news:F1908DD8-6D27-4A8F-800E-6E1D9E2D007A@microsoft.com...
> Hi,
>
> This question seems a little silly, but I want to dissable code lines
> using
> this way:
>
> <asp:Button ID="Button1" runat="server" Text="Button" /></div>
> <!--<asp:Button ID="Button1" runat="server" Text="ButtonOld"
> /></div>-->
>
> But I get an error about a duplicate identificator.
> How can I fix it?
>
Date:Mon, 30 Jul 2007 15:00:40 -0400
Author:
|
|
|