2011-10-01 61 views
-2

是否有人可以將此代碼的PHP部分轉換爲.net?將PHP片段代碼翻譯爲.net

function showonlyone() { 
$(‘div[name|="newboxes"]‘).each(function(index) { 
    if ($(this).attr(「id」) == <?=htmlentities($_GET['id']);?>) { 
     $(this).show(200); 
    } 
    else { 
     $(this).hide(600); 
    } 
}); 
} 

感謝

回答

1
Server.HtmlEncode(Request.QueryString['id']); 
+0

作爲一個方面說明,我在大約15秒通過谷歌發現了這一點。 – ceejayoz

+0

謝謝。您是如何查詢Google的? – Totem

+0

「htmlentities .net」和「$ _GET .net」。 – ceejayoz