RadNumericTextbox Mapping issue

1 posts, 0 answers
  1. Johnathan
    Johnathan avatar
    39 posts
    Member since:
    Sep 2012

    Posted 14 Sep 2012 Link to this post

    Update: I realized that the issue was caused by another control. I apologize for the post.


    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
        .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
    End With
    AdjustmentID = oCmd.Parameters("@NewID").Value

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