Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
GeneralRe: best way to store configuration and state info Pin
Eddy Vluggen21-Jan-10 8:43
professionalEddy Vluggen21-Jan-10 8:43 
GeneralRe: best way to store configuration and state info Pin
Colin Angus Mackay21-Jan-10 8:39
Colin Angus Mackay21-Jan-10 8:39 
GeneralRe: best way to store configuration and state info Pin
Eddy Vluggen21-Jan-10 8:42
professionalEddy Vluggen21-Jan-10 8:42 
AnswerRe: best way to store configuration and state info Pin
Colin Angus Mackay21-Jan-10 8:37
Colin Angus Mackay21-Jan-10 8:37 
AnswerRe: best way to store configuration and state info Pin
PIEBALDconsult21-Jan-10 18:19
mvePIEBALDconsult21-Jan-10 18:19 
AnswerRe: best way to store configuration and state info Pin
sandyrae21-Jan-10 21:03
sandyrae21-Jan-10 21:03 
AnswerRe: best way to store configuration and state info Pin
#realJSOP21-Jan-10 23:42
mve#realJSOP21-Jan-10 23:42 
Questionunknown error code Pin
Erdinc2721-Jan-10 7:10
Erdinc2721-Jan-10 7:10 
hi guys...i have a problem as usual...actually an error that i have never seen before..i have two radio button in my form i use one of them to add customer and the second one to add company...while adding company no problem..i can make adding process..but while adding customer i have got an error on the screen by messagebox error says that :
"No mapping exists from object type System.Data.DataRowView to a known managed provider native type."
i have these codes to add the customer

cmd = new SqlCommand("insert into XXX(ad_syd,firma,sektor,grup,cep_no,is_no,ev_no) values (@ad_syd,@firma,@sektor,@grup,@cep_no,@is_no,@ev_no)", con);
cmd.Parameters.AddWithValue("@ad_syd",info.ToTitleCase(txtAdSyd.Text));
cmd.Parameters.AddWithValue("@firma", cmbFirma.SelectedItem);
cmd.Parameters.AddWithValue("@sektor", txtsektor.Text);
cmd.Parameters.AddWithValue("@grup", txtGrup.Text);
cmd.Parameters.AddWithValue("@cep_no", Birlestir(txtCepKod.Text, txtCep.Text));
cmd.Parameters.AddWithValue("@is_no", Birlestir(txtKod.Text, txtisTlf.Text));
cmd.Parameters.AddWithValue("@ev_no", Birlestir(txtEvKod.Text, txtEvTlf.Text));
if ((txtisTlf.Text != ""))
{
if ((txtAdSyd.Text != ""))
{
if (cmd.ExecuteNonQuery() == 1)
MessageBox.Show("Ekleme İşlemi Tamamlandı", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);
else
MessageBox.Show("Ekleme Sırasında Hata Oluştu", "Dikkat", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
MessageBox.Show("* İşaretli Alanlar Boş Bırakılamaz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);
}
else
MessageBox.Show("* İşaretli Alanlar Boş Bırakılamaz", "Uyarı", MessageBoxButtons.OK, MessageBoxIcon.Warning);

i replaced a breakpoint but it doesnt enter if (cmd.ExecuteNonQuery() == 1) that line...it goes to catch block directly
what can be the problem ??
AnswerRe: unknown error code Pin
Luc Pattyn21-Jan-10 7:36
sitebuilderLuc Pattyn21-Jan-10 7:36 
AnswerRe: unknown error code Pin
Som Shekhar21-Jan-10 7:38
Som Shekhar21-Jan-10 7:38 
AnswerRe: unknown error code Pin
Abhinav S21-Jan-10 17:57
Abhinav S21-Jan-10 17:57 
AnswerRe: unknown error code Pin
SimpleData22-Jan-10 0:10
SimpleData22-Jan-10 0:10 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 9:17
Erdinc2722-Jan-10 9:17 
GeneralRe: unknown error code Pin
SimpleData22-Jan-10 9:37
SimpleData22-Jan-10 9:37 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 22:02
Erdinc2722-Jan-10 22:02 
GeneralRe: unknown error code Pin
Erdinc2722-Jan-10 22:54
Erdinc2722-Jan-10 22:54 
QuestionAm I missing something? Pin
Unsy21-Jan-10 7:07
Unsy21-Jan-10 7:07 
AnswerRe: Am I missing something? Pin
Som Shekhar21-Jan-10 7:35
Som Shekhar21-Jan-10 7:35 
GeneralRe: Am I missing something? Pin
Unsy21-Jan-10 7:45
Unsy21-Jan-10 7:45 
GeneralRe: Am I missing something? Pin
Som Shekhar21-Jan-10 7:48
Som Shekhar21-Jan-10 7:48 
GeneralRe: Am I missing something? Pin
Som Shekhar21-Jan-10 7:49
Som Shekhar21-Jan-10 7:49 
GeneralRe: Am I missing something? Pin
AspDotNetDev21-Jan-10 15:44
protectorAspDotNetDev21-Jan-10 15:44 
Questionsecurity init failure error in win32 dll's method when calling from C# (windows and web) application. Pin
sund7wells21-Jan-10 4:55
sund7wells21-Jan-10 4:55 
AnswerRe: security init failure error in win32 dll's method when calling from C# (windows and web) application. Pin
Dave Kreskowiak21-Jan-10 5:23
mveDave Kreskowiak21-Jan-10 5:23 
GeneralRe: security init failure error in win32 dll's method when calling from C# (windows and web) application. Pin
sund7wells21-Jan-10 22:01
sund7wells21-Jan-10 22:01 

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.