Click here to Skip to main content
15,996,848 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,

I have designed the repeater control with textbox. i need to multiply two textbox columns when i key press in the textbox and show in 3rd column.

What I have tried:

I put like this:
var qty = document.getElementById("<%=txtQty.ClientID%>").value;
var rate = document.getElementById("<%=txtRate.ClientID%>").value;
var amt = document.getElementById("<%=txtAmt.ClientID%>").value;
amt= qty * rate;

its shows an error: The name 'txtQty' does not exist in the current context
Posted
Updated 4-Feb-17 18:33pm

1 solution

 
Share this answer
 
Comments
Vivek.anand34 6-Feb-17 4:54am    
thank u. its useful for me.
Karthik_Mahalingam 6-Feb-17 8:33am    
welcome vivek

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