A
arlie
I am working with the asp.net blog posted at msdn by marco bellianso, msdn
october 2003.
The problem is that the javascript (ToggleDivState) to show and hide
comments does not work in browsers other than ie. So I have another
javascript that works across most browsers. The script I am using needs a
single quoted div
To test my script I inserted the following line where I have hardcoded the
div (div3).
<a href="javascript:ShowHide('div3');">show layer</a>
What I need is to add single quotes to the following code (div" &
Container.DataItem(MessageId") & ") . The full line is below.
<asp:HyperLink Runat="server" Visible='<%#
Container.DataItem("CommentsCount") > 0 %>'
NavigateUrl='<%# "javascript:ShowHide(div" & Container.DataItem("MessageID")
& ");" %>'>View</asp:HyperLink>
Everything I try gives a server tag is not well formed error.
Thanks
arlie
october 2003.
The problem is that the javascript (ToggleDivState) to show and hide
comments does not work in browsers other than ie. So I have another
javascript that works across most browsers. The script I am using needs a
single quoted div
To test my script I inserted the following line where I have hardcoded the
div (div3).
<a href="javascript:ShowHide('div3');">show layer</a>
What I need is to add single quotes to the following code (div" &
Container.DataItem(MessageId") & ") . The full line is below.
<asp:HyperLink Runat="server" Visible='<%#
Container.DataItem("CommentsCount") > 0 %>'
NavigateUrl='<%# "javascript:ShowHide(div" & Container.DataItem("MessageID")
& ");" %>'>View</asp:HyperLink>
Everything I try gives a server tag is not well formed error.
Thanks
arlie