show me the page load code. or rather the way you populate the dropdownlist
you should also use
if not Page.IsPostBack then
' and populate the controls code here
end if
(my Bad if the vb.net code is not correct i use c# and here is how you do
it)
if(!Page.IsPostBack)
{
// populate the data or call a methd that does it.
}
--
Regards,
Hermit Dave
(
http://hdave.blogspot.com)
"Paul" <> wrote in message
news:7F8D765A-6323-4F45-83AF-...
> Hi I have a dropdown list box being filled with a stored procedure, this
> works ok. I have autopostback set to true and on the selectedIndexChanged
> event for the selected value and selected item it always is the first
> element
> no matter what is selected. I set a breakpoint in the event to check, and
> have the data text field and data value field of the control are both
> string
> types as filled by the procedure.
>
> Private Sub dr_user_SelectedIndexChanged(ByVal sender As System.Object,
> ByVal e As System.EventArgs) Handles dr_user.SelectedIndexChanged
> Dim tmpstring As String
> Dim tempint As Integer
> '''''''''''''''''''''''''''''''''''''''''''''''''
> tmpstring = dr_user.SelectedItem.Text
> tmpstring = dr_user.SelectedValue.ToString
> --
>
> Paul G
> Software engineer.