I have a Grid using automatic inserts. My Primary Key database field "USER_Pin" is an integer. I prompt for this key using a RadNumericTextBox. However, on my INSERT I get the following error:
Cannot insert the value NULL into column 'USER_Pin', table 'RTS.dbo.tblUsers'; column does not allow nulls. INSERT fails.The statement has been terminated.
If I change this RadNumericTextBox to a RadTextBox, the INSERT works.
I have tried changing the SqlDataSource Parameters datatypes to string, int16, even removing the type, etc.. nothing seems to work for the RadNumericTextBox
<InsertParameters>
<asp:Parameter Name="USER_Pin" Type="Int16" />
<asp:Parameter Name="USER_Name" Type="String" />
<asp:Parameter Name="USER_Email" Type="String" />
<asp:Parameter Name="USER_Override_Email" Type="String" />
<asp:Parameter Name="USER_Privilege" Type="String" />
<asp:Parameter Name="USER_Status" Type="String" />
</InsertParameters>
What am I missing??
Cannot insert the value NULL into column 'USER_Pin', table 'RTS.dbo.tblUsers'; column does not allow nulls. INSERT fails.The statement has been terminated.
If I change this RadNumericTextBox to a RadTextBox, the INSERT works.
I have tried changing the SqlDataSource Parameters datatypes to string, int16, even removing the type, etc.. nothing seems to work for the RadNumericTextBox
<InsertParameters>
<asp:Parameter Name="USER_Pin" Type="Int16" />
<asp:Parameter Name="USER_Name" Type="String" />
<asp:Parameter Name="USER_Email" Type="String" />
<asp:Parameter Name="USER_Override_Email" Type="String" />
<asp:Parameter Name="USER_Privilege" Type="String" />
<asp:Parameter Name="USER_Status" Type="String" />
</InsertParameters>
What am I missing??