Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将此代码更改为客户端的 jQuery 而不是服务器端代码。C#
btnUpload.OnClientClick = "javascript:showFileUploader('ctl00_contentMain_pnlUploadCntrlContainer'); return false;";
$('#<%= btnUpload.ClientID %>').click(function(){ showFileUploader('#<%= pnlUploadCntrlContainer.ClientID %>'); return false; });