C# 用querystring值替换embded代码
我的代码:C# 用querystring值替换embded代码,c#,javascript,html,asp.net,C#,Javascript,Html,Asp.net,我的代码: <embed type="application/x-shockwave-flash" id="flash-player-embed" wmode="transparent" src="http://static.xvideos.com/swf/xv-player.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="id_video=7966" width="588"
<embed type="application/x-shockwave-flash" id="flash-player-embed" wmode="transparent" src="http://static.xvideos.com/swf/xv-player.swf" quality="high" allowfullscreen="true" allowscriptaccess="always" flashvars="id_video=7966" width="588" height="476">
我想在上面的代码中指定查询字符串的值,如下例所示:
< flashvars="id_video=Request.QueryString["vid"]" >
我想将从查询字符串接收到的值分配到7966处。我该怎么做?试试这个:
flashvars='id_video=<%# (Request.QueryString["vid"] != null) ? Request.QueryString["vid"].ToString() : ""%>'
flashvars='id\u video='
你试过用谷歌搜索并找出答案吗?