Inserts a System.Web.UI.WebControls.ListItem which represents the specified string in the collection at the specified index location.
- index
- The location in the collection to insert the System.Web.UI.WebControls.ListItem.
- item
- A string that represents the item to insert in the collection.
Use the ListItemCollection.Insert(int, string) method to add a System.Web.UI.WebControls.ListItem to the collection at the index specified by the index parameter. This implementation of the method creates a System.Web.UI.WebControls.ListItem to represent the text specified by the item parameter. The ListItem.Text property of the new System.Web.UI.WebControls.ListItem has the value item, and the ListItem.Value property has the value null. This System.Web.UI.WebControls.ListItem is then inserted in the collection at the specified index.