asp.net 中怎么把数据库中的flash地址绑定啊就是怎么显示数据库中的flash

解决方案 »

  1.   

    你说的有点模糊了,如果光是地址的话,只要把地址当作字符串存在电脑,然后再需要打开flash的地方读取数据就行了
      

  2.   

    比如说 有个数据库  flashgameurlinfo  有个字段是 flashgameurl ,flashgameurl的数据是 http://www.community.com/flash.swf我要在 页面  default.aspx 从flashgameurlinfo  表中吧  flashgameurl 的flash 显示出来。
      

  3.   

    你的意思是在页面动态显示FLASH吧?
    <OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    height="170" width="668" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
    <PARAM NAME="_cx" VALUE="847">
    <PARAM NAME="_cy" VALUE="847">
    <PARAM NAME="FlashVars" VALUE="">
    <PARAM NAME="Movie" VALUE="Flash/Logo.swf">
    <PARAM NAME="Src" VALUE="Flash/Logo.swf">
    <PARAM NAME="WMode" VALUE="Window">
    <PARAM NAME="Play" VALUE="0">
    <PARAM NAME="Loop" VALUE="-1">
    <PARAM NAME="Quality" VALUE="High">
    <PARAM NAME="SAlign" VALUE="">
    <PARAM NAME="Menu" VALUE="-1">
    <PARAM NAME="Base" VALUE="">
    <PARAM NAME="AllowScriptAccess" VALUE="always">
    <PARAM NAME="Scale" VALUE="NoBorder">
    <PARAM NAME="DeviceFont" VALUE="0">
    <PARAM NAME="EmbedMovie" VALUE="0">
    <PARAM NAME="BGColor" VALUE="">
    <PARAM NAME="SWRemote" VALUE="">
    <PARAM NAME="MovieData" VALUE="">
    <PARAM NAME="SeamlessTabbing" VALUE="1">
    </OBJECT>
    类似这样的格式,你要做的就是给调整swf文件的地址,和swf文件的宽和高,最好能把swf文件的宽和高一起存入数据库,
      

  4.   

    <PARAM NAME="Src" VALUE="Flash/Logo.swf">
    昏死,这个我n年以前就会了,我要的是从数据库中绑定的啊。狂昏!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      

  5.   

    zahota(谁找我?) 的意思是用数据库里的值替换上面的value值
      

  6.   

    老大,具体该怎么传了<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="kanvod.WebForm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>WebForm1</title>
    <META content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
    <META content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
    <META content="JavaScript" name="vs_defaultClientScript">
    <META content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
    <script language="vb" runat="server">
     Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load         End Sub
    </script>  
            </HEAD>
    <BODY MS_POSITIONING="GridLayout">
    <FORM id="Form1" method="post" runat="server">
    <FONT face="宋体">
    <OBJECT id="vodplay" style="Z-INDEX: 101; LEFT: 56px; WIDTH: 288px; POSITION: absolute; TOP: 24px; HEIGHT: 240px"
    classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" VIEWASTEXT>
    <PARAM NAME="URL" VALUE="E:\ftproot\翅膀.rm">
    <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="7620">
    <PARAM NAME="_cy" VALUE="6350">
    </OBJECT>
    </BODY>
    </HTML>//// 我想用asp.net(vb.net 2003)做个在线看电影的网站,
    请问怎么将“E:\ftproot\翅膀.rm” 这个视频文件的路径
    在网页展开时给动态的传进去(<PARAM NAME="URL" VALUE="E:\ftproot\翅膀.rm">)
      

  7.   

    我对这类问题的解决办法是在页面中放两个Label,第一个Label.Text的初始值是控件内容,第二个Label.Text值是你需要动态绑定的内容(比如flash地址),在页面进行动态绑定时用Label.Text.Replace(第二个Lable.Text,新的绑定内容),然后把第二个Label.Text赋值为新的绑定内容。具体如下:动态绑定时:t1.Text=t1.Text.Replace(t2.Text,flashgameurl);
    <asp:Label ID="t1" runat="server">
    <OBJECT codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
    height="170" width="668" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" VIEWASTEXT>
    <PARAM NAME="_cx" VALUE="847">
    <PARAM NAME="_cy" VALUE="847">
    <PARAM NAME="FlashVars" VALUE="">
    <PARAM NAME="Movie" VALUE="Flash/Logo.swf">
    <PARAM NAME="Src" VALUE="Flash/Logo.swf">
    <PARAM NAME="WMode" VALUE="Window">
    <PARAM NAME="Play" VALUE="0">
    <PARAM NAME="Loop" VALUE="-1">
    <PARAM NAME="Quality" VALUE="High">
    <PARAM NAME="SAlign" VALUE="">
    <PARAM NAME="Menu" VALUE="-1">
    <PARAM NAME="Base" VALUE="">
    <PARAM NAME="AllowScriptAccess" VALUE="always">
    <PARAM NAME="Scale" VALUE="NoBorder">
    <PARAM NAME="DeviceFont" VALUE="0">
    <PARAM NAME="EmbedMovie" VALUE="0">
    <PARAM NAME="BGColor" VALUE="">
    <PARAM NAME="SWRemote" VALUE="">
    <PARAM NAME="MovieData" VALUE="">
    <PARAM NAME="SeamlessTabbing" VALUE="1">
    </OBJECT>
    </asp:Label>
    <asp:Label ID="t2" runat="server" Text="Flash/Logo.swf" ></asp:Label>