Hello, I am attempting to use RegisterClientScriptBlock and it is not seeming to work. Can someone take a look at my code?
Here is my C# (which I have in my PageLoad)
var videoLoadScript = " var so = new SWFObject('player.swf','mpl','955',' 540','9');";
videoLoadScript += "so.addParam('allowscriptaccess','always');";
videoLoadScript += "so.addParam('allowfullscreen','true');";
videoLoadScript += "so.addParam('flashvars','&file='" + path + "'&autostart=true');";
videoLoadScript += "so.write('player');";
ClientScript.RegisterClientScriptBlock(this.GetType(), "test", videoLoadScript, true);
Here is my HTML (which I have in my BODY tag):
<div id="player" oninit="test();" align="center">This text will be replaced</div>
does anyone see anything obviously wrong?