c# const in jQuery?
<p>I have this piece of code in javascript:</p>

<pre><code> var catId = $.getURLParam("category");
</code></pre>

<p>In my asp.net and c# code for "category" query string i use a public const: </p>

<pre><code>public const string CATEGORY = "category";
</code></pre>

<p>so if i want to change the query string parameter to be "categoryTest" i only change this const and all the code is updated.</p>

<p>Now the question is: how can i do something similar for the javascript i have in the same application (so i want to use the same constant)?</p>

<p>I mean i want something like this:</p>

<pre><code>var catId = $.getURLParam(CQueryStringParameters.CATEGORY);
</code></pre>

<p>but because there are none asp.net tags, my const is not interpreted...</p>

<p>Any workaround?</p>
