Session Variable Problem
Hi,
I have 2 listbox controls. I am using Session variable to retain focus on the last selected item of listbox1. I am doing some LINK and UNLINK operation with the 2 listboxes. All is working fine but when i work on the last element of the listbox1, it gives the following error:
Specified argument was out of the range of valid values. Parameter name: value .
I have checked by Debugging that the Session variable set is getting passed to the calling listbox1:
listbox1.SelectedIndex = CInt(Session("SVar"))
but it still gives the above mentioned error & ONLY FOR THE LAST SELECTED element in the listbox1.
will someone suggest for the missing link?
Regards
Monica
|