Due to changes in VB.NET and C#, when programming ASP.NET Web pages, developers must be aware of a variable's data type. Oftentimes, trying to assign a String variable to a variable of type Integer will result in a "Type Mismatch" error.
To successfully convert a String into an Integer, you can use one of two techniques: via the Parse method of the Int32 class
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.