How to get value inside a textBox.
Like we do this in C# txtABC.Text.whats in javascript?
var textboxValue = document.getElementById('TextBox1').value;
And if i've filled my label using javascript client side event,how will i access its value on server side?
Well, the value of a label is not preserved. So a workaround would be to use a hidden field. Here's how:
In the aspx page:
<asp:HiddenField ID="Amount" runat="server" />
Add this line in javascript:
var amt = document.getElementById("Amount");
amt.value = parseInt(txtQuantityE.get_value()) * parseInt(lblRate.innerHTML);
And in the code behind:
lblAmount.Text = Amount.Value;
Hope this is clear now. :)