Robert M

Robert M

  • NA
  • 13
  • 597

Passing a parameter to a Div element

Feb 13 2021 1:05 PM
I've been writing my own music database using a web front end, I found a free to use player called Wimpy, can create my own favourite tracks and save them to an XML file, the player picks up these tracks and plays them.
 
2 issues exist the first. The player will not sit correctly within UpdatePanels, I have to keep refreshing the page for it to stay on therefore I have had to keep it outside from the rest of the HTML code, not practical but it works
 
The second issue I have is, I have an ASP Dropdown with the favourites listed which are held / retrieved from a SQL Server database, I want to press a button which updates part of the following code
<div id="MediaPlayer">
<table>
<tr>
<td class="vtop">
<div id="MyTest" runat="server" class="player"
data-wimpyPlayer
data-skin="wimpy_7.81/wimpy.skins/cool-eq-Robs.tsv"
data-media="SimpleMinds.xml">
</div>
</td>
</tr>
</table>
</div>
 
I somehow need it to update the part contained within the quotes with the Dropdown DataText field, data-media="SimpleMinds.xml", with data-media="Ultravox.xml", is there a way to update this part using C# or is there a better easier way. I was thinking of saving the parts in quotes as a parameter and somehow passing it in
 
Many thanks for your help

Answers (2)