Translating PHP fragment code to .net
<p>could anybody translate the PHP part of this code into .net?  </p>

<pre><code>function showonlyone() {
$(‘div[name|="newboxes"]‘).each(function(index) {
    if ($(this).attr(“id”) == &lt;?=htmlentities($_GET['id']);?&gt;) {
        $(this).show(200);
    }
    else {
        $(this).hide(600);
    }
});
}  
</code></pre>

<p>Thanks</p>
