C
Craig G
i've emailed metabuilders themselves but was just wondering has anybody else ever had this problem?
I am populating the combobox using a SQL2000 table. The combobox populates successfully with the required values but for some reason the SelectedIndexChanged will not fire, and it always has the SelectedIndex as -1 no matter what value I select within the combobox! Autopostback is also set to True
The data going into the combo is as follows
Value = is of datatype int, with values ranging from '-2101632658' to '2147433125'
Text = is of datatype varchar(50), with just text strings
Code used to populate the combobox
Dim itmBlank As ListItem
itmBlank = New ListItem(" ", "0")
With ddlTutor
.Items.Clear()
.DataSource = dsResults.Tables(0)
.DataValueField = "TutorCode"
.DataTextField = "TutorName"
.DataBind()
.Items.Insert(0, itmBlank)
End With
I was wondering is it there any limits to the value field that may be causing the problem, or any other suggestions you may have?
If I use a standard WebForms Combobox it will perform normally as expected
Cheers,
Craig
I am populating the combobox using a SQL2000 table. The combobox populates successfully with the required values but for some reason the SelectedIndexChanged will not fire, and it always has the SelectedIndex as -1 no matter what value I select within the combobox! Autopostback is also set to True
The data going into the combo is as follows
Value = is of datatype int, with values ranging from '-2101632658' to '2147433125'
Text = is of datatype varchar(50), with just text strings
Code used to populate the combobox
Dim itmBlank As ListItem
itmBlank = New ListItem(" ", "0")
With ddlTutor
.Items.Clear()
.DataSource = dsResults.Tables(0)
.DataValueField = "TutorCode"
.DataTextField = "TutorName"
.DataBind()
.Items.Insert(0, itmBlank)
End With
I was wondering is it there any limits to the value field that may be causing the problem, or any other suggestions you may have?
If I use a standard WebForms Combobox it will perform normally as expected
Cheers,
Craig