Click here to Skip to main content
15,917,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to solve this Error...in insert query Pin
Rob Philpott30-Jun-14 22:40
Rob Philpott30-Jun-14 22:40 
AnswerRe: how to solve this Error...in insert query Pin
AjayJamwal2-Jul-14 3:20
professionalAjayJamwal2-Jul-14 3:20 
Dear Member,

As per your code analysis , it is clear that you are using three comboboxes & one datetime picker control.

Since combobox control also returns object type instance, you have to mentioned here:

cmd.Parameters.AddWithValue("@itm", comboBox1.SelectedItem.Text); // if <a href="/Members/item">@item</a> is varchar.
cmd.Parameters.AddWithValue("@make", comboBox2.SelectedItem.Text); // if <a href="/Members/make">@make</a> is varchar
cmd.Parameters.AddWithValue("@dop", dateTimePicker1.SelectedDate); // if you are using RadDateTimePicker
cmd.Parameters.AddWithValue("@year", comboBox3.SelectedItem.Text); // if <a href="/Members/Year">@year</a> is varchar

Hope it help.

Thanks
QuestionExecuting few lines of code on Windows Store app installation Pin
Sharath C V30-Jun-14 21:14
professionalSharath C V30-Jun-14 21:14 
AnswerRe: Executing few lines of code on Windows Store app installation Pin
Pete O'Hanlon30-Jun-14 23:19
mvePete O'Hanlon30-Jun-14 23:19 
GeneralRe: Executing few lines of code on Windows Store app installation Pin
Sharath C V1-Jul-14 0:34
professionalSharath C V1-Jul-14 0:34 
GeneralRe: Executing few lines of code on Windows Store app installation Pin
Pete O'Hanlon1-Jul-14 1:31
mvePete O'Hanlon1-Jul-14 1:31 
QuestionMSI installer, deployment Pin
ankum1630-Jun-14 18:17
ankum1630-Jun-14 18:17 
AnswerRe: MSI installer, deployment Pin
Bernhard Hiller30-Jun-14 20:24
Bernhard Hiller30-Jun-14 20:24 
QuestionHow to add ScrollViewer to usercontrol in MVVM by josh smith. Pin
vijendra malik30-Jun-14 16:45
vijendra malik30-Jun-14 16:45 
AnswerRe: How to add ScrollViewer to usercontrol in MVVM by josh smith. Pin
Kornfeld Eliyahu Peter30-Jun-14 19:18
professionalKornfeld Eliyahu Peter30-Jun-14 19:18 
Questionbetween two Datetimepicker using Pin
Nishant.Chauhan8029-Jun-14 19:30
Nishant.Chauhan8029-Jun-14 19:30 
AnswerRe: between two Datetimepicker using Pin
Eddy Vluggen29-Jun-14 22:28
professionalEddy Vluggen29-Jun-14 22:28 
AnswerRe: between two Datetimepicker using Pin
OriginalGriff29-Jun-14 22:59
mveOriginalGriff29-Jun-14 22:59 
GeneralRe: between two Datetimepicker using Pin
V.30-Jun-14 3:16
professionalV.30-Jun-14 3:16 
GeneralRe: between two Datetimepicker using Pin
OriginalGriff30-Jun-14 4:26
mveOriginalGriff30-Jun-14 4:26 
QuestionWinforms vs MFC Pin
shiftwik29-Jun-14 17:50
shiftwik29-Jun-14 17:50 
AnswerRe: Winforms vs MFC Pin
PIEBALDconsult29-Jun-14 18:10
mvePIEBALDconsult29-Jun-14 18:10 
AnswerRe: Winforms vs MFC Pin
Eddy Vluggen29-Jun-14 22:30
professionalEddy Vluggen29-Jun-14 22:30 
AnswerRe: Winforms vs MFC Pin
OriginalGriff29-Jun-14 23:01
mveOriginalGriff29-Jun-14 23:01 
QuestionEmail sending failed in asp.net c# Pin
Member 1022600129-Jun-14 5:43
Member 1022600129-Jun-14 5:43 
AnswerRe: Email sending failed in asp.net c# Pin
Pete O'Hanlon29-Jun-14 6:48
mvePete O'Hanlon29-Jun-14 6:48 
GeneralRe: Email sending failed in asp.net c# Pin
Member 1022600129-Jun-14 6:59
Member 1022600129-Jun-14 6:59 
GeneralRe: Email sending failed in asp.net c# Pin
Member 102260012-Jul-14 5:32
Member 102260012-Jul-14 5:32 
QuestionSave in related table ... Pin
nassimnastaran29-Jun-14 4:34
nassimnastaran29-Jun-14 4:34 
AnswerRe: Save in related table ... Pin
OriginalGriff29-Jun-14 5:50
mveOriginalGriff29-Jun-14 5:50 

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.