How to prevent postback on asp button while displaying a popup using JQuery

后端 未结 3 376
感情败类
感情败类 2021-01-27 06:27

I have the following ItemTemplate in my GridView:


    

        
3条回答
  •  梦毁少年i
    2021-01-27 06:54

    OnClientClick="return myfunction(); 
    
    function myfunction(){
    // you can put youe popup logic here 
    
        return false;
    
    }
    

    Using like this your button never do post back.

提交回复
热议问题