Lost Focus method for asp.net textbox?

后端 未结 4 2056
孤街浪徒
孤街浪徒 2020-11-30 05:36

How to write Lost focus method for asp.net text method? Please anybody have any idea to write this, share with me?

4条回答
  •  一个人的身影
    2020-11-30 06:22

    If you want the server to do something after the textbox loses focus you can add AutoPostback="True" and, if you don't want the postback to reload the whole page, use an UpdatePanel:

        
        
            
                
            
        
    

    The function TextBox1_TextChanged can then do something with the text (serverside).

提交回复
热议问题