请问如何关闭本窗口?
这个页面的名字是:listen.aspx
功能:从数据库中获得播放地址,然后用以下方式播放:
从数据库取播放地址和类型
...............
url="http://"+ds.Tables[0].Rows[0]["music_address1"].ToString();
if(type=="real")
{
this.Page.Response.ContentType="audio/x-pn-realaudio";
}
else
{
this.Page.Response.ContentType="audio/x-mpegurl";
}
this.Page.Response.Buffer=true;
this.Page.Response.Clear();
this.Page.Response.Write(url);
this.Page.Response.Flush();
this.Page.Response.Clear();
this.Page.RegisterStartupScript("play","<script language=javascript>window.close();</script>");
但是奇怪的是:如果type不是real类型的,则能打开客户端的media播放器播放并且也能关闭本窗口。
但是如果type是real类型的,则能打开客户端的real播放器播放,但是不能关闭本窗口,请问是什么原因,谢谢!!