Accessing C# variable in javascript
<p>I'm going to design a website for DMS (educational domain) in C#.NET, which I am new to. </p>

<p>In one of my ASPX pages, I want to disable a menu, which is in JavaScript, according to <code>accessright</code>. </p>

<p>The <code>accessright</code> stored in database table <code>login</code> as one attribute in SQL server, and I want to retrieve that <code>accessright</code> to one C# variable and want to access that variable in JavaScript.</p>

<p>If there is another possible approach please tell.</p>
