String is undefined
<p>I've got the following property in the code-behind of my .aspx:</p>

<pre><code>    protected string CurrentProductView
    {
        get
        {
            string viewName = string.Empty;
            viewName = Enum.GetName(typeof(ProductView), currentProdView);
            return viewName;
        }
    }
</code></pre>

<p>In my .aspx I've got some Javascript that tries to reference this string:</p>

<pre><code>$(document).ready(function ()
{
    var action = &lt;%=CurrentProductView %&gt;

             $("#recommendations").load("recommendationsHandler.ashx?action=" + action + "item&amp;csid=" + csid + "&amp;productID=" + productID, function()
        {
            $("#recommendationsView").show();
        });
});
</code></pre>

<p>but for some reason I get "Item is not defined".</p>

<p>When I debug this, I'm definitely seeing a string come back for viewName.  So why would it complain if a string is coming back?!?!</p>
