摘要:OnClientClick正確用法
如果要使用net元件做client click動作後再進入postback動作,需在OnClentClick裡回傳true/false,所以需在內容內加上return方法,如下
OnClientClick="javascript:return check();
或
OnClientClick = "javascript:selectedItems(); return false;"
OnClientClick = "javascript:selectedItems(); return true;"
OnClientClick = "javascript:selectedItems!=null"