How to get value of textbox in C# when it assign by jquery -
i new jquery.
i have web service returns data. assign data textbox using jquery when want access value in c#, generates exception incorrect format
.
this jquery code.
$('#ltrl_gsalary').html(grosssalary); $('#ltrl_netsalary').html(grosssalary-parseint(totaldeduction));
this code works fine, displays data.
i tried:
$('#ltrl_gsalary').val(grosssalary); $('#ltrl_netsalary').val(grosssalary-parseint(totaldeduction));
this code not display data.
this c# code
salary.netsalary = ltrl_netsalary.text.todecimal(); salary.grosssalary = ltrl_gsalary.text.todecimal();
this causes exception incorrect format
.
try use hidden field capture data
Comments
Post a Comment