Many thanks for all your help with the previous thread with XML and Virtual Folders in IIS
2 Questions if I may
1. I have the following inside my DotNet Webform - HTML
using C# I'm trying to amend the part - /SimpleMinds.xml" to /All.xml"
Have written the following to retrieve the Div into a textbox as a test
Is there a way to update the HTML Div statement above using C#
2. An additional anomaly. I've had to put the code above outside the UpdatePanel because when I refresh an element on the page the player disappears altogether, Is there a way to reload the player without executing all the other code
Many thanks for your help
2 Questions if I may
1. I have the following inside my DotNet Webform - HTML
HTML:
<div id="MediaPlayer">
<table>
<tr>
<td><img alt="spacer" src="graphics/spacer.gif" style="width: 30px; height: 5px" /></td>
<td class="vtop"><div id="MyTest" runat="server" class="player" data-wimpyPlayer data-skin="wimpy_7.81/wimpy.skins/cool-eq-Robs.tsv" data-startUpText="Welcome" data-media="MusicFavourites/SimpleMinds.xml"></div> </td>
</tr>
</table>
Have written the following to retrieve the Div into a textbox as a test
C#:
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter h = new System.Web.UI.HtmlTextWriter(sw);
MyTest.RenderControl(h);
txtMsg.Text = sw.GetStringBuilder().ToString();
2. An additional anomaly. I've had to put the code above outside the UpdatePanel because when I refresh an element on the page the player disappears altogether, Is there a way to reload the player without executing all the other code
Many thanks for your help
Last edited by a moderator: