Save dialog box through javascript
<p>I am using javascript to open save dialog box</p>

<p>the java script is </p>

<p>function openDialog(path)
{</p>

<pre><code> document.execCommand("SaveAs",true,path);
</code></pre>

<p>}</p>

<p>In my project, i am creating linkButtons dynamically and attaching this function with linkButton's OnClient Click event at run time.</p>

<pre><code>            LinkButton linkButton = new LinkButton();
            linkButton.OnClientClick = "openDialog("+file.ToString()+")";
</code></pre>

<p>where "file" contains the path of the file which has to be saved.</p>

<p>But i am getting a javascript error as</p>

<p>"Expected ")" "</p>

<p>can anyone help me in what i am doing wrong in this.</p>

<p>I have N number of dynamically created linkButtons and i am associating each linkButton with different file.</p>
