TEXTCHANGE EVENT AT SERVER SIDE USING JAVASCRIPT IN ASP.NET C#

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
 7972  View(s)
Ratings:
Rate this:
how to call TextChange Event at server side using JavaScript in asp.net with c#?
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: TextChange Event at server side using javascript in asp.net c#

    Set TextBox1 Property as

    TextBox1.AutoPostBack = true;

    below code at aspx page

    <script language="javascript" type="text/javascript">
            function CallTextChange()
                 {           
         __doPostBack("TextBox1", "TextChanged");
                 }
    </script>

    call 'CallTextChange'  function where you want

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!