How to get GotFocus, LostFocus event of a textbox in Webforms using C#

前端 未结 2 1364
南方客
南方客 2021-01-20 13:27

I am not able to get the event GotFocus, LostFocus of a textbox while creating a website. I just wanted. As I have asked earlier in my question how to get the value of one t

2条回答
  •  时光取名叫无心
    2021-01-20 13:51

    try TextBox1.Focus() for getting the focus on textbox and for lost focus, take focus from this textbox1 to another or some hidden control.

提交回复
热议问题