Skip to content
Loading
KeyUp Function not firing on textbox ASP.NET Web Form 
0
  • Salman Beg
    Check this link also, https://stackoverflow.com/questions/5607313/how-to-call-javascript-function-on-keyup-event-for-asptextbox/5607425
    +1
  • Sachin Singh
    keep it simple
     
    1. "txtCurrency" onkeyup ="FormatRupiah();" runat="server">    
    1. protected void Page_Load(object sender, EventArgs e)  
    2.     {  
    3.         txtCurrency.Attributes.Add("onkeyup", "FormatRupiah(this)");  
    4.     }    
     
    1. "text/javascript">  
    2.     function FormatRupiah(e) {  
    3.   
    4.     var rupiah=new Intl.NumberFormat('ID').format(e.value);  
    5.   
    6.     }  
    7.   
    8.   
    +1