How To Pass Label Value in from Jquery(Client Side) to Server Side (Code behind)
Hi Developers,how to pass TextBox & Label Value from Client side Jquery to Derver Side(Code Behind).
I have done some of modules using jquery Running time.
But the Running time Label Values are Not Bind in Server Side. ald also cant able to insert that runtime value.(Label.Text=Null).
My Jquery Runtime:
Am using onkeyup="txtpercentage()"
<script>
function txtpercentage() {
var Total= $("#txtGrandTotal").val();
var Already = $("#txtAlreadyPaid").val();
Balance = parseFloat(Total) - parseFloat(Already );
$("#lblBalance").html(Balance.toFixed(2));
}
</script>
Html Form:
<table>
<tr>
<td>
<asp:Label ID="Label36" runat="server" Text="Grand Total"></asp:Label>
<span style="float:right"><span style="color:red;">*</span> : </span></td>
<td>
<asp:Label ID="txtGrandTotal" runat="server" class="add"
AutoComplete="off" Width="250px"></asp:Label>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label38" runat="server" Text="Already Paid"></asp:Label>
<span style="float:right"><span style="color:red;">*</span> : </span></td>
<td>
<asp:TextBox ID="txtQUOTEAlreadyPaid" runat="server" AutoComplete="off" Width="250px"
onkeyup="txtpercentage()"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<asp:Label ID="Label37" runat="server" Text="Balance Payment"></asp:Label>
<span style="float:right"><span style="color:red;">*</span> : </span></td>
<td>
<asp:Label ID="lblBalance" runat="server" AutoComplete="off" Width="250px" Font-Bold="true"></asp:Label>
</td>
</tr>
</table>
in my query is working fine with functionalities.
But i cant able to get Label(lblBalance) Text or Value .
So still i cant able to insert Label(lblBalance ) value into the database.
because in server side lblBalance.Text is showing Null.
So How i am get the label values and insert it. any suggestion.
if Possible how to Pass Label(;b;Balance) value to Server side to a Button Click
thanks with
Paul.S