I have a couple of text boxes on a form that I want to take the contents, perform one mathematical calculation against it and set the contents of a label with the results. I'd like to have the label set upon exit of the text box field. The textbox name is txtOpBudgAmt and the drop down is ddlTime1.
I have attached my code in the OnTextChanged event for the textbox txtOpBudgAmt which isn't working. What am I doing wrong here?
if (ddlTime1.SelectedValue == "Week")
int intWeeklyAmt Convert Int32(txtOpBudgAmt) * 52;
lblOpBudgCalcAmt = intWeeklyAmt.ToString();