im loading items using loadondemand(ItemsRequested) on a usercontrol ascx i also attach attributes to items
eg
item.Attributes.Add(
"onclick"
,
"NavigateAreaSelection("
+ CRMAreaID +
")"
)
the problem i have is that when you select an item i navigate to a different page but would like to keep the
selected item selected, i try to do this on the page load of the usercontrol but i find that it doesn't have any items and will always be empty
So How do i Maintain the selected input or populate the combobox on navigating to a different page ?
below page load
If
ComboAllContacts.Items.FindItemByValue(AreaHelper.GetSelectedAreaID())
IsNot
Nothing
Then
ComboAllContacts.SelectedValue = AreaHelper.GetSelectedAreaID()
End
If