I have a couple of stored procedures that are being called from my Page_Load
event.
They worked before, but now they are not working.
I am getting the error:
Specified argument was out of the range of valid values. Parameter name:
value
The function called is:
*************** *************** *************** **********
Sub GetExperienceLe vel()
exit sub
Dim emailReader As SqlDataReader
trace.warn("ins ide GetExperienceLe vel")
Dim ConnectionStrin g as String
=System.Configu ration.Configur ationSettings.A ppSettings("MM_ CONNECTION_STRI NG_ftsol")
Dim objConn as New SqlConnection (ConnectionStri ng)
Dim CommandText as String = "Exec GetExperienceLe vel"
Dim objCmd as New SqlCommand(Comm andText,objConn )
objConn.Open()
ExperienceLevel .DataSource=obj Cmd.ExecuteRead er
ExperienceLevel .DataTextField= "Descriptio n"
ExperienceLevel .DataValueField ="ExperienceLev elID"
ExperienceLevel .databind()
ExperienceLevel .Items.Insert(0 , "Select Experience Level")
ExperienceLevel .Items(0).value = 0
trace.warn("exi ting GetExperienceLe vel")
end sub
*************** *************** *************** ***********
It is dying on the databind() line.
The dropdown is:
Experience:<asp :DropDownList id="ExperienceL evel" runat="server"
/></td>
The data coming back is:
ExperienceLevel ID Description
----------------- ----------------
10 Less than 1
20 1-2 Years
30 2-5 Years
Why is it not binding?
Thanks,
Tom