I have salary table inbsql server.
In asp.net I need to calculate total salary with in the buttonclick where onclick will call a javascript function like below.
function(int bonusSalary, int totalSalary)
{
var totalSalary= bonusSalary+majorSalary;
textbox.text=totalSalary;
}
Here bonusSalary and majorSalary should come from sql server salary table
Regards
Sridhar Thota.
www.dotnet-sridhar.blogspot.com