txtresult is the value of Name Property of used TextBox control in this code. You need to add a TextBox in your application and assign it Name property value ‘txtresult’ for this code to work.
2
solved linq beginner, foreach statement without declaration?