Below is sample code
ASPX code
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<script src="Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Repeater ID="Repeater1" runat="server">
<ItemTemplate>
<div>
<asp:TextBox ID="TextBox1" runat="server" Text=0 />
<asp:TextBox ID="TextBox2" runat="server" Text=0 />
<asp:TextBox ID="TextBox3" runat="server" />
</div>
</ItemTemplate>
</asp:Repeater>
</div>
<script>
function GetTotalAmount(obj){
var txtbox1id = obj.id.replace('TextBox2','TextBox1');
var txtbox2id = obj.id.replace('TextBox1','TextBox2');
var txtbox3id = obj.id.replace('TextBox1','TextBox3').replace('TextBox2','TextBox3');
var total =parseFloat($('#'+ txtbox1id).val()) +parseFloat($('#'+txtbox2id).val());
$('#' + txtbox3id).val(total);
}
$(document).ready(function() {
$("input[id*=TextBox1]").each(function() {
$(this).change(function() {
GetTotalAmount(this);
});
});
$("input[id*=TextBox2]").each(function() {
$(this).change(function() {
GetTotalAmount(this);
});
});
});
</script>
</form>
</body>
</html>