我是要一个播放器,用了COM组件中的windows Media player,
里面有个<PARAM NAME="URL" VALUE="">
我用地址传值,把歌曲的地址传到这个页面,然后附值给str
我就用<PARAM NAME="URL" VALUE="'"& str &"'">,结果它显示的地址是“str”而不是str的值
用了 ="<%str%>",也是不行,
大虾们求助啊!!!!!!!!!!!
完整代码:
<script language="vb" runat="server">
sub page_load(obj as object,e as eventargs)
Label1.Text = Server.UrlDecode(Request.QueryString("gm").ToString)
Dim str As String = Server.UrlDecode(Request.QueryString("gm").ToString) ←这个是变量附值~!
end sub
</script>
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:label id="Label1" style="Z-INDEX: 101; LEFT: 168px; POSITION: absolute; TOP: 88px" runat="server"></asp:label>
<OBJECT id="wmp" style="Z-INDEX: 102; LEFT: 280px; WIDTH: 240px; POSITION: absolute; TOP: 48px; HEIGHT: 248px"
classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" VIEWASTEXT>
<PARAM NAME="URL" VALUE="<%str%>"> ← !!!!!!! 就这里啊!!!!!!
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="0">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">
<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="50">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="full">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="-1">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="6350">
<PARAM NAME="_cy" VALUE="6562">
</OBJECT>