Response.Redirect可以重定向到anything, make sure the 流媒体文件 url exists

解决方案 »

  1.   

    i sureplease try rtsp://210.41.247.100/news/zhlm/swpi.rmif i write code as 
    Response.Redirect("rtsp://210.41.247.100/news/zhlm/swpi.rm")then the page is nothing——The page cannot be displayedwhy?
      

  2.   

    it works for me, :-), RealPlayer pops up<%Response.Redirect("rtsp://210.41.247.100/news/zhlm/swpi.rm");%>
      

  3.   

    再问saucer,我用编程的方法为什么不能实现呢?也就是说我这样做(其中流媒体文件地址从数据库中读出),怎么就实现不了呢??
    代码如下——<script runat="server" language="vb">
      Sub Page_Load(Source As Object, E As EventArgs)
    Dim MyConnection As SqlConnection = new SqlConnection("server=210.41.247.201;uid=anyone;PWD=205di214;DATABASE=elearning")
    Dim sql as string = "select links from Content where ContentID='" & Request.QueryString("Id") & "'"
    Dim MyCmd As New SqlCommand(sql,Myconnection)
    MyConnection.Open()
    Dim MyDataReader As SqlDataReader = MyCmd.ExecuteReader()
    Dim url as string
    MyDataReader.Read()
    url = MyDataReader.GetString(0)
    Response.Redirect(url)
    MyDataReader.Close()
    MyConnection.Close()
    End Sub
    </script>
      

  4.   

    问题找到,是我的iis有问题。结贴