Update: I realized that the issue was caused by another control. I apologize for the post.
Hello,
I'm attempting to use the numeric textbox control provided by Telerik and I'm receiving the following error when I attempt to use the control's text value in a sql insert:
{"No mapping exists from object type System.Web.UI.WebControls.Label to a known managed provider native type."}
Here's the code that I'm using to attempt to do the insert:
'Insert/Update the Adjustment With oCmd .Parameters.Clear() .Connection = oConn .CommandType = CommandType.StoredProcedure .CommandText = "iBill_Dashboard_Insert_Adjustments" With .Parameters .AddWithValue("@DepartmentTab", DepartmentTab) .AddWithValue("@ProjectType", ProjectType) .AddWithValue("@Month", Month) .AddWithValue("@Year", Year) .AddWithValue("@Value", tValue.Text) .AddWithValue("@AdjustmentID", AdjustmentID) .Add("@NewID", SqlDbType.Int) End With .Parameters("@NewID").Direction = ParameterDirection.Output .ExecuteNonQuery() End With AdjustmentID = oCmd.Parameters("@NewID").ValueThe error occurs on the ExecuteNonQuery() method. Any help would be greatly appreciated.