This is a migrated thread and some comments may be shown as answers.

RadNumericTextbox Mapping issue

0 Answers 47 Views
Input
This is a migrated thread and some comments may be shown as answers.
Johnathan
Top achievements
Rank 1
Johnathan asked on 14 Sep 2012, 02:01 PM

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").Value

The error occurs on the ExecuteNonQuery() method. Any help would be greatly appreciated.

No answers yet. Maybe you can help?

Tags
Input
Asked by
Johnathan
Top achievements
Rank 1
Share this question
or