T
tshad
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 GetExperienceLevel()
exit sub
Dim emailReader As SqlDataReader
trace.warn("inside GetExperienceLevel")
Dim ConnectionString as String
=System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_ftsol")
Dim objConn as New SqlConnection (ConnectionString)
Dim CommandText as String = "Exec GetExperienceLevel"
Dim objCmd as New SqlCommand(CommandText,objConn)
objConn.Open()
ExperienceLevel.DataSource=objCmd.ExecuteReader
ExperienceLevel.DataTextField= "Description"
ExperienceLevel.DataValueField="ExperienceLevelID"
ExperienceLevel.databind()
ExperienceLevel.Items.Insert(0, "Select Experience Level")
ExperienceLevel.Items(0).value = 0
trace.warn("exiting GetExperienceLevel")
end sub
********************************************************
It is dying on the databind() line.
The dropdown is:
Experience:<aspropDownList id="ExperienceLevel" runat="server"
/></td>
The data coming back is:
ExperienceLevelID Description
----------------- ----------------
10 Less than 1
20 1-2 Years
30 2-5 Years
Why is it not binding?
Thanks,
Tom
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 GetExperienceLevel()
exit sub
Dim emailReader As SqlDataReader
trace.warn("inside GetExperienceLevel")
Dim ConnectionString as String
=System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_ftsol")
Dim objConn as New SqlConnection (ConnectionString)
Dim CommandText as String = "Exec GetExperienceLevel"
Dim objCmd as New SqlCommand(CommandText,objConn)
objConn.Open()
ExperienceLevel.DataSource=objCmd.ExecuteReader
ExperienceLevel.DataTextField= "Description"
ExperienceLevel.DataValueField="ExperienceLevelID"
ExperienceLevel.databind()
ExperienceLevel.Items.Insert(0, "Select Experience Level")
ExperienceLevel.Items(0).value = 0
trace.warn("exiting GetExperienceLevel")
end sub
********************************************************
It is dying on the databind() line.
The dropdown is:
Experience:<aspropDownList id="ExperienceLevel" runat="server"
/></td>
The data coming back is:
ExperienceLevelID Description
----------------- ----------------
10 Less than 1
20 1-2 Years
30 2-5 Years
Why is it not binding?
Thanks,
Tom