Hi Natty,
The only problem is I get the error "Object reference not set to an instance
of an object. " if I change the code to:
How can I get around this error?
Moe
Public ReadOnly Property SelectedCategoriesID As String
Get
return lstCategorie.SelectedItem.Value
End Get
End Property
Public ReadOnly Property SelectedStatesID As String
Get
return lstStates.SelectedItem.Value
End Get
End Property
"Natty Gur" <> wrote in message
news:...
> Hi,
>
> If I get you right you need to use ListBox SelectedItem.Value to get
> current user select value.
>
> Public ReadOnly Property SelectedCategoriesID As String
> Get
> return lstCategorie.SelectedItem.Value
> End Get
> End Property
>
> HTH
>
> Natty Gur[MVP]
>
> blog : http://weblogs.asp.net/ngur
> Mobile: +972-(0)52-8888377
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!