ajax下linkbutton的刷新的问题
<object id= "mediaPlayer " width= "440 " height= "400 " 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= "FileName " value= "mms://media.suctv.com/MySpace\51\2007052112001268251.wmv " />
<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= "1 " />
<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= "mms://media.suctv.com/MySpace\51\2007052112001268251.wmv " align= "baseline " border= "0 " width= "400 " height= "330 "
type= "application/x-mplayer2 "
pluginspage= "http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=media&sba=plugin& "
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>
</object>
<asp:UpdatePanel ID= "UpdatePanel1 " runat= "server ">
<ContentTemplate>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID= "LinkButton1 " EventName= "Click " />
</Triggers>
</asp:UpdatePanel>
<asp:LinkButton ID= "LinkButton1 " runat= "server "> LinkButton </asp:LinkButton>
为什么我点击Linkbutton播放器就停止了,而换成button就没有这现象
有什么解决办法吗
[解决办法]
你可以在LinkButton 的OnClientClick= " "事件 写代码就可以了
[解决办法]
对 用 OnClientClick 事件,在客户端执行
[解决办法]
cs文件里写
LinkButton1.setAttribute.add( "onClick ", "执行JS ");
[解决办法]
不用linkbutton,用html控件行不。
[解决办法]
LinkButton1.setAttribute.add( "onClick ", "执行JS ");