Call Public variable of C# in javascript?
<p><strong>My Problem is I am try to call Public variable in Code Behind From JavaScript function
I try To Do This :</strong></p>

<p><strong>In Code Behind Section:</strong></p>

<pre><code>  public string str ="TEST";
</code></pre>

<p><strong>In JavaScript Section:</strong></p>

<pre><code> &lt;script type="text/javascript" language="javascript"&gt;

    function funDoSomething()
    {
        var strMessage = '&lt;%= str%&gt;';
        alert( strMessage );
    }
 &lt;/script&gt;
</code></pre>

<p><strong>Any Suggestion?</strong></p>
