TextBox2.Attributes.Add("onkeyup", "Fill('" + TextBox1.ClientID.ToString() + "','" + TextBox2.ClientID.ToString() + "','" + TextBox3.ClientID.ToString() + "')")
<script type="text/javascript">
function Fill(x, y, z)
{
val1 = parseFloat(document.getElementById(x).value);
val2 = parseFloat(document.getElementById(y).value);
//code here
}
</script>
No comments:
Post a Comment