Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
when i have enter the value calculate the values and get that value another textbox or label ,without autopostback
Posted

use client side script like javascript/jquary

JavaScript
$(document).ready(function() {
        $('#<%=myText.ClientID%>').change(function(){
           // do something 
         });
     });
 
Share this answer
 
Use textbox OnKeyPress Event instead that.....using javascript

JavaScript
function myFunction()
{
alert("You pressed a key inside the input field");
}
</script>


HTML
<p>A function is triggered when the user is pressing a key in the input field.</p>

<input type="text" onkeypress="myFunction()">



see online demo.. onkeypress Event[^]

Regards,
Nirav Prabtani
 
Share this answer
 
you can use Update panel to avoid page postback

else 

you can use jquery onchange /javascript.
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900