If strID is a string, and your FindItemByID requires the second argument to be double, then you need to use double.Parse to convert it to double first.
hii thnx for ur reply...
code for FindItemByID is:
Private Sub FindItemByID(ByVal cbCombo As ComboBox, ByVal strID As String)
' This sub is used to find an Item in a combobox and
' set the selected index of the combo box to that item
Dim bFound As Boolean
Dim ListItem As ListItem
Dim ItemCount As Integer
ListItem = New ListItem
ItemCount = 0
While Not bFound Or ItemCount <= cbCombo.Items.Count - 1
ListItem = CType(cbCombo.Items(ItemCount), ListItem)
If ListItem.ID = CInt(strID) Then
cbCombo.SelectedIndex = ItemCount
bFound = True
End If
ItemCount += 1
End While
If Not bFound Then
cbCombo.SelectedIndex = -1
End If
End Sub
then wat shd i change...
plz help.. thnx