刚学.net,请大哥大姐指导一下哦(关于html中如何传值的问题)
比如说下面这段在play.aspx页中的HTML代码(用来播放rm格式的影片的):
<object ID= "video1 " CLASSID= "clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA " HEIGHT= "300 " WIDTH= "400 ">
<param name= "_ExtentX " value= "22304 ">
<param name= "_ExtentY " value= "14288 ">
<param name= "AUTOSTART " value= "-1 ">
<param name= "SHUFFLE " value= "0 ">
<param name= "PREFETCH " value= "0 ">
<param name= "NOLABELS " value= "0 ">
<param name= "SRC " value= "URL ">
<param name= "CONTROLS " value= "ImageWindow ">
<param name= "CONSOLE " value= "Clip1 ">
<param name= "LOOP " value= "0 ">
<param name= "NUMLOOP " value= "0 ">
<param name= "CENTER " value= "0 ">
<param name= "MAINTAINASPECT " value= "0 ">
<param name= "BACKGROUNDCOLOR " value= "#000000 ">
</object>
<object ID= "Object1 " CLASSID= "clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA " HEIGHT= "60 " WIDTH= "400 ">
<param name= "controls " value= "ControlPanel,StatusBar ">
<param name= "console " value= "Clip1 ">
<embed type= "audio/x-pn-realaudio-plugin " CONSOLE= "Clip1 " CONTROLS= "ControlPanel,StatusBar " HEIGHT= "60 " WIDTH= "400 " AUTOSTART= "true ">
</object>
不知道 <param name= "SRC " value= "URL "> 这个里的value要怎么给它赋值呢?
我影片的地址已经通过play.aspx?film_address={0}这样子传过来了.
请大哥大姐帮忙想想,小弟等着~~~
哦~~ 还有最好可以提供给我一段比较详细的代码,在播放的时候可以最大化之类的.哈哈.3QU
------解决方案--------------------protected string filePath;
protected void Page_Load(object sender, EventArgs e)
{
filePath = Request.QueryString[ "film_address "].ToString();
this.DataBind();
}
<param name= "SRC " value= <%#filePath%> >
------解决方案--------------------一个比较正统的asp.net写法可以这样:
<object id= "video1 " classid= "clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA " height= "300 "
width= "400 ">
<param name= "_ExtentX " value= "22304 ">
<param name= "_ExtentY " value= "14288 ">
<param name= "AUTOSTART " value= "-1 ">
<param name= "SHUFFLE " value= "0 ">
<param name= "PREFETCH " value= "0 ">
<param name= "NOLABELS " value= "0 ">
<param name= "SRC " value= "URL " runat= "server " id= "Video1Value " />
<param name= "CONTROLS " value= "ImageWindow "