Calculate total on TextBox's TextChanged() event in asp.Net
问题 I have a small application as below. In this Material Rate and PO Total are read only fields. I want to calculate the total as per material quantity changes by formula (Total=Rate*Qty). I coded on Material Quantity's TextChanged() and also changed AuotoPostBack to True Code I tried is as below: protected void txtMQty_TextChanged(object sender, EventArgs e) { checkTotal(); } //I am saving Rate in ViewState["Rate"] and retrieving here. private void checkTotal() { Rate = Convert.ToInt32