首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

object控件如何用?提示 上下问中不存在item

2011-12-23 
object控件怎么用?提示 上下问中不存在item我把下边的代码放在form的div里objectid items class Sys

object控件怎么用?提示 上下问中不存在item
我把下边的代码放在form的div里
<object   id= "items "   class= "System.Collections.ArrayList "   runat= "server "/>
但是我在.cs文件里输入item   提示   上下问中不存在item

http://quickstarts.asp.net/QuickStartv20/aspnet/doc/pages/syntax.aspx
Object   Tag   Syntax:   <object   runat= "server "   />

[解决办法]
举一个例子:

<object id= "MediaPlayer1 " width= "350 " height= "68 " classid= "CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 "
codebase= "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 "
align= "baseline " border= "0 " standby= "Loading Microsoft Windows Media Player components... "
type= "application/x-oleobject ">
<param name= "invokeURLs " value= "0 ">
<param name= "ShowControls " value= "1 ">
<param name= "ShowPositionControls " value= "0 ">
<param name= "ShowAudioControls " value= "1 ">
<param name= "ShowTracker " value= "1 ">
<param name= "ShowDisplay " value= "0 ">
<param name= "ShowStatusBar " value= "1 ">
<param name= "AutoSize " value= "0 ">
<param name= "ShowGotoBar " value= "0 ">
<param name= "ShowCaptioning " value= "0 ">
<param name= "AutoStart " value= "1 ">
<param name= "PlayCount " value= "0 ">
<param name= "AnimationAtStart " value= "0 ">
<param name= "TransparentAtStart " value= "0 ">
<param name= "AllowScan " value= "0 ">
<param name= "EnableContextMenu " value= "1 ">
<param name= "ClickToPlay " value= "0 ">
<param name= "DefaultFrame " value= "datawindow ">
<embed src= "http://218.57.146.130/mv/music/right+here+waiting2.mp3 " align= "baseline "
border= "0 " width= "350 " height= "68 " type= "application/x-mplayer2 " pluginspage= "http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp; "
name= "MediaPlayer " showcontrols= "1 " showpositioncontrols= "0 " showaudiocontrols= "1 "
showtracker= "1 " showdisplay= "0 " showstatusbar= "1 " autosize= "0 " showgotobar= "0 "
showcaptioning= "0 " autostart= "1 " autorewind= "0 " animationatstart= "0 " transparentatstart= "0 "
allowscan= "1 " enablecontextmenu= "1 " clicktoplay= "0 " defaultframe= "datawindow "
invokeurls= "0 "> </embed>
<asp:Literal runat= "server " ID= "OtherParams "> </asp:Literal>
</object>


后台代码:

this.OtherParams.Text=@ " <param name= " "FileName " "
value= " "http://www.bookcard.com.cn/downloads/lx/谭咏麟半梦半醒之间.mp3 " "> ";

热点排行