How to fire Textbox textchanged event while typing in textbox

后端 未结 3 1185
感动是毒
感动是毒 2021-01-25 11:55

In my project i am using Textbox inside updatepanel to display the Receipt number which is not already exist in db table. But the textchanged event on the textbox is no

3条回答
  •  情话喂你
    2021-01-25 12:31

    Use this, its working fine

    JAVASCRIPT

    function ChangeText() {
                var t1 = document.getElementById('<%= txtArticleTitle.ClientID %>');
                var t2 = document.getElementById('<%= txtPageName.ClientID %>');
    
                t2.value = t1.value;
            }
    

    ASP.NET SOURCE

    Article Title:
     
    
    Page Name:

提交回复
热议问题