Using clientscript.registerstartupscript with parameters to call javascript function
<p>1) I'm having an javascript control created with HTML5 and showing it with div.</p>

<pre><code>&lt;div id="&lt;%=this.ClientID%&gt;" style="z-index:100;"&gt;&lt;/div&gt;
</code></pre>

<p>The control has a method <code>init()</code> to which I need to pass parameters from code behind; in order to initialize it. So this is how I'm doing it:</p>

<pre><code>string script2 = String.Format("&lt;%=this.ClientID%&gt;.init({0},{1})", param1, param2);

this.Page.ClientScript.RegisterStartupScript(this.GetType(), "initialize control", script2, true);
</code></pre>

<p>Is this the right way?</p>

<p>2) What's the difference between setting parameter as <code>{1}</code> and <code>'{1}'</code>? </p>
