Thanks Pavan Kumar Mark Answer if this fits the need
try { int Val = 0; if (textboxCost.Text.Trim() != "") Val = Convert.ToInt32(textboxCost.Text); for (int i = 0; i < Val; i++) { // Your code goes here... } } catch { }
Login to post response