Enum to string C# and JavaScript
<p>In my .aspx I've got the following javascript variable defined:</p>

<pre><code>var action = &lt;%=ProdView %&gt;
</code></pre>

<p>In code-behind this returns a custom enum value:</p>

<pre><code>protected ProductView ProdView { get; private set; }
</code></pre>

<p>I would figure that this would automatically be converted to a string in javascript?  Looks like no because I get the runtime error "Item is not defined" where Item is the value ProdView.Item.  Ultimately I want the action's value to be "Item" as the value.</p>

<p>Here's the Enum:</p>

<pre><code>  public enum ProductView
  {
   Product,
   Item
  }
</code></pre>
