我可以在GridView的SelectedIndexChanged事件上調用JS函數嗎? 我提到這2個SO帖子 - Post 1和 Post 2解決這個問題,但他們沒有幫助。GridView OnSelectedIndexChanged調用JavaScript函數
我試圖
OnSelectedIndexChanged="selectedindexchanged()"
然而,作爲回報我收到 -
'ASP.default_aspx' does not contain a definition for 'selectedindexchanged' and no
extension method 'selectedindexchanged' accepting a first argument of type
'ASP.default_aspx' could be found (are you missing a using directive or an
assembly reference?)
任何人都可以確認是否可以做到這一點,如果能以正確的方式做到這一點?