Thursday, March 22, 2012

Media Player and .NET

Hi all just moved form asp to .NET
Was wondering how i would assign a path stored in a databse as text, to the param value filename of an embeded media player in ASP.NET?
I have the values selected from the database,how would i know assign one of thoese values to
<PARAM NAME="fileName" VALUE=" Here ">
so the selected value can be used to link to an mp3 file on my file system
thanks for any help
treeb

Ok i will try and re prase my question in ASP i could

<%=RS(Tra_Path)%>
and add it to the folwing HTML tag to call the file path for an image

<Img src="http://pics.10026.com/?src=<%=RS(Tra_Path)%>">

etc etc
how would i do the samr thing in .NET but to show media player the path to an mp3 file
<param name="filename" value=" ">
may be ?
<%=AccessDataSource1.DataBind(Tra_Path)%>
thanks for nay hlep i hope this makes more sence!!!!
edd


It was simple used aQueryString like bellow pased the track path from the previous page

<objectid="axWindowsMediaPlayer1"classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"type="application/x-oleobject">

<paramname="fileName"value="<%=Request.QueryString("Tra_Path")%>">

<paramname="autoStart"value="true">

<paramname="showControls"value="true">

</object>
Home this helps anyone else

edd


0 comments:

Post a Comment