C
Cal Who
The master has a routine that I call in the code behind to turn some things
on or off.
smothing.Visible = Not Me.Master.HideSomeParts()
One of the content pages reads data from an xml file into a asp:Literal
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/Organization/AccordionData.xml"
XPath="/DefaultDataItems/DataItem"></asp:XmlDataSource>
<ajaxToolkit:Accordion ...snip... DataSourceID="XmlDataSource1">
<ContentTemplate>
<asp:Literal Mode="PassThrough" runat="server" Text='<%#XPath("Contents")%>'
/>
</ContentTemplate>
</ajaxToolkit:Accordion>
The data is html markup and is displayed on the browser.
In one case the data causes an image to be displayed
<Contents>
<![CDATA[
<table>
<tr>
<td>
stuff
</td>
<td>
<img src="../Images/RecAnimation.gif" alt="" />
</td>
</tr>
</table>
]]>
</Contents>
</DataItem>
Is it possible to turn this image on and off using JaveScript and
HideSomeParts() or somting like that?
Thanks
on or off.
smothing.Visible = Not Me.Master.HideSomeParts()
One of the content pages reads data from an xml file into a asp:Literal
<asp:XmlDataSource ID="XmlDataSource1" runat="server"
DataFile="~/Organization/AccordionData.xml"
XPath="/DefaultDataItems/DataItem"></asp:XmlDataSource>
<ajaxToolkit:Accordion ...snip... DataSourceID="XmlDataSource1">
<ContentTemplate>
<asp:Literal Mode="PassThrough" runat="server" Text='<%#XPath("Contents")%>'
/>
</ContentTemplate>
</ajaxToolkit:Accordion>
The data is html markup and is displayed on the browser.
In one case the data causes an image to be displayed
<Contents>
<![CDATA[
<table>
<tr>
<td>
stuff
</td>
<td>
<img src="../Images/RecAnimation.gif" alt="" />
</td>
</tr>
</table>
]]>
</Contents>
</DataItem>
Is it possible to turn this image on and off using JaveScript and
HideSomeParts() or somting like that?
Thanks