Click here to Skip to main content
15,888,341 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Error Inserting data - into the database. Pin
Richard MacCutchan6-Mar-17 6:25
mveRichard MacCutchan6-Mar-17 6:25 
GeneralRe: Error Inserting data - into the database. Pin
samflex6-Mar-17 7:01
samflex6-Mar-17 7:01 
AnswerRe: Error Inserting data - into the database. Pin
F-ES Sitecore7-Mar-17 0:52
professionalF-ES Sitecore7-Mar-17 0:52 
GeneralRe: Error Inserting data - into the database. Pin
samflex8-Mar-17 5:03
samflex8-Mar-17 5:03 
GeneralRe: Error Inserting data - into the database. Pin
F-ES Sitecore8-Mar-17 5:44
professionalF-ES Sitecore8-Mar-17 5:44 
GeneralRe: Error Inserting data - into the database. Pin
samflex8-Mar-17 6:09
samflex8-Mar-17 6:09 
GeneralRe: Error Inserting data - into the database. Pin
F-ES Sitecore8-Mar-17 22:16
professionalF-ES Sitecore8-Mar-17 22:16 
GeneralRe: Error Inserting data - into the database. Pin
Richard Deeming8-Mar-17 7:58
mveRichard Deeming8-Mar-17 7:58 
Quote:
var contactdiv = '<tr class="data-contact-personm">' +

Is that a typo in your question? Based on the rest of your code, the class should be data-contact-person, without the trailing "m".

samflex wrote:
parameter @name is required but not supplied

Are you absolutely sure the error message mentions the @name parameter? As F-ES Sitecore said, you're not passing a parameter called @name to the stored procedure, so if that's a required parameter, it would explain the error.

Alternatively, if the error is referring to one of the parameters you have defined, it's probably because one of the properties is Nothing. If you pass Nothing to the command parameter, the parameter will use its default value as defined in the stored procedure. If it doesn't have a default value, you'll get the "parameter not supplied" error.

The simplest solution would be to set a default value on the parameters of your stored procedure:
SQL
ALTER PROC sprInsertDisclsosures
(
    -- TODO: Set the correct data types and lengths:
    @ename nvarchar(50) = Null,
    @email nvarchar(200) = Null,
    @title nvarchar(20) = Null,
    @sname nvarchar(50) = Null,
    @saddress nvarchar(max) = Null,
    @sincome varchar(10) = Null
)
As
...




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Error Inserting data - into the database. Pin
samflex8-Mar-17 8:40
samflex8-Mar-17 8:40 
GeneralRe: Error Inserting data - into the database. Pin
Richard Deeming8-Mar-17 8:50
mveRichard Deeming8-Mar-17 8:50 
GeneralRe: Error Inserting data - into the database. Pin
samflex8-Mar-17 8:55
samflex8-Mar-17 8:55 
GeneralRe: Error Inserting data - into the database. Pin
Richard Deeming8-Mar-17 9:09
mveRichard Deeming8-Mar-17 9:09 
GeneralRe: Error Inserting data - into the database. Pin
samflex8-Mar-17 9:19
samflex8-Mar-17 9:19 
Questioninput string was not in a correct format published site error when recycle working properly Pin
Praveen Kandari3-Mar-17 23:31
Praveen Kandari3-Mar-17 23:31 
AnswerRe: input string was not in a correct format published site error when recycle working properly Pin
Richard MacCutchan3-Mar-17 23:37
mveRichard MacCutchan3-Mar-17 23:37 
GeneralRe: input string was not in a correct format published site error when recycle working properly Pin
Praveen Kandari3-Mar-17 23:39
Praveen Kandari3-Mar-17 23:39 
GeneralRe: input string was not in a correct format published site error when recycle working properly Pin
EcareTechnologies8-Mar-17 20:11
EcareTechnologies8-Mar-17 20:11 
QuestionHow to remove marshaling errors for COM-interop or PInvoke Pin
Member 30804702-Mar-17 23:39
Member 30804702-Mar-17 23:39 
AnswerRe: How to remove marshaling errors for COM-interop or PInvoke Pin
Richard MacCutchan3-Mar-17 1:05
mveRichard MacCutchan3-Mar-17 1:05 
QuestionASP.net ajax image upload Pin
Member 130057291-Mar-17 6:15
Member 130057291-Mar-17 6:15 
AnswerRe: ASP.net ajax image upload Pin
F-ES Sitecore1-Mar-17 23:00
professionalF-ES Sitecore1-Mar-17 23:00 
QuestionHow to avoid kill or wait alert? Pin
Member 1028105628-Feb-17 18:24
Member 1028105628-Feb-17 18:24 
AnswerRe: How to avoid kill or wait alert? Pin
Nathan Minier1-Mar-17 1:11
professionalNathan Minier1-Mar-17 1:11 
AnswerRe: How to avoid kill or wait alert? Pin
F-ES Sitecore1-Mar-17 4:13
professionalF-ES Sitecore1-Mar-17 4:13 
AnswerRe: How to avoid kill or wait alert? Pin
ZurdoDev1-Mar-17 5:18
professionalZurdoDev1-Mar-17 5:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.