Class in an object element under asp.net

I use the following code in my asp.net web design:

<object id="ClockFrame01" class="System.Collections.ArrayList" width="70px" height="70px" type="application/x-shockwave-flash" runat="server" data="http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=808000&wtsid=US-CA" > <param name="movie" value="http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=808000&wtsid=US-CA" /> <param name="FlashVars" value="playerMode=embedded" /> <param name=" wmode" value="permanent" /> <param name="ShowDisplay" value="true"/> </object> 

to replace the old one that creates the error:

 <embed src="http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=808000&wtsid=US-CA" class="style_Clock" wmode="transparent" type="application/x-shockwave-flash" runat="server" /> 

But when my code is debugging; I do not have enough hours from my site!
Obviously, I have bad code, but I do not know how to do this.

And the following class works the same way:

 class="System.Web.UI.HtmlControls.HtmlGenericControl" 
+4
source share
1 answer

I finally found the wrong text input in my code. The correct code is:

 <object id="ClockFrame01" class="System.Web.UI.HtmlControls.HtmlGenericControl" width="70px" height="70px" type="application/x-shockwave-flash" data="http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=808000&wtsid=US-CA" > <param name="movie" value="http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=808000&wtsid=US-CA" /> <param name="FlashVars" value="playerMode=embedded" /> <param name=" wmode" value="transparent" /> <param name="ShowDisplay" value="true"/> </object> 

The error was

Runat = "server"

Object MUST NOT have this instruction !!!

You also need to make some changes:

& wtsid

need to change to

 &amp;wtsid 
+1
source

Source: https://habr.com/ru/post/1415724/


All Articles