ButtonClick後不postback

 Button.Attributes.Add("onclick" , "event.returnValue = false") 只能在google內使用

萬用方法為

Button.Attributes.Add("onclick" , "return false") 可以在google firefox和ie使用



參考:http://codingnoteofccs.blogspot.com/2014/08/aspnetbuttonpostback.html

留言

這個網誌中的熱門文章

無法載入檔案或組件 'System.IO.Compression' 或其相依性的其中之一。

MongoDB 入門

javascript 更改屬性及創建標籤