How to fire Textbox textchanged event while typing in textbox

后端 未结 3 1197
感动是毒
感动是毒 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条回答
  •  萌比男神i
    2021-01-25 12:30

    You can create a procedure in serverside and execute it with javascript. The logic used below is simple, create a procedure, add a button and set visibility to false or display: none with css. The procedure is then fired on click of the button, and the click event is being triggered from the javascript. Feel free to ask if you encounter any problem

    vb code

        Public Sub FetchRecord()
    
        'Your Code Here..
    
        End Sub
    
    Protected Sub btnView_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnView.Click
            FetchRecord()
    End Sub
    

    Javascript

    
    

提交回复
热议问题