Click here to Skip to main content
15,923,374 members
Home / Discussions / C#
   

C#

 
GeneralFill many combo in a fORm fROm DB Pin
Jassim Rahma24-Apr-05 11:38
Jassim Rahma24-Apr-05 11:38 
GeneralRe: Fill many combo in a fORm fROm DB Pin
Kodanda Pani24-Apr-05 18:28
Kodanda Pani24-Apr-05 18:28 
GeneralMDI Child without Min, Max or X Pin
Jassim Rahma24-Apr-05 11:30
Jassim Rahma24-Apr-05 11:30 
GeneralRe: MDI Child without Min, Max or X Pin
Ashok Dhamija24-Apr-05 18:17
Ashok Dhamija24-Apr-05 18:17 
GeneralRe: MDI Child without Min, Max or X Pin
Kodanda Pani24-Apr-05 18:32
Kodanda Pani24-Apr-05 18:32 
GeneralRe: MDI Child without Min, Max or X Pin
Luis Alonso Ramos24-Apr-05 20:18
Luis Alonso Ramos24-Apr-05 20:18 
GeneralRe: MDI Child without Min, Max or X Pin
Ashok Dhamija24-Apr-05 21:06
Ashok Dhamija24-Apr-05 21:06 
QuestionA syntax error or logic? Pin
Tugbay Sahin24-Apr-05 9:26
Tugbay Sahin24-Apr-05 9:26 
Ok , this time I think it is a logic error r smth... her eis the full code:
private void Tamam_Click(object sender, System.EventArgs e)
{

SqlCommand myCommand = null;
myCommand = new SqlCommand("INSERT INTO CES VALUES(@i_cesit,@i_uzunluk,@i_capı,@i_uzunlugu,@i_kavisi,@arayuz,@kod,@stok,@g_fiyat,@s_fiyat)",Form1.myConnection);
try
{
myCommand.Parameters.Add("@i_cesit",SqlDbType.VarChar);
myCommand.Parameters["@i_cesit"].Value = ıplık_cesıtı.Text;
myCommand.Parameters.Add("@i_uzunluk",SqlDbType.Int);
myCommand.Parameters["@i_uzunluk"].Value = ıplık_capı.Text;
myCommand.Parameters.Add("@i_capı",SqlDbType.VarChar);
myCommand.Parameters["@i_capı"].Value = ıplık_capı.Text;
myCommand.Parameters.Add("@i_uzunlugu",SqlDbType.Int);
myCommand.Parameters["@i_uzunlugu"].Value = (ıgne_uzunlugu.Text);
myCommand.Parameters.Add("@i_kavisi",SqlDbType.VarChar);
myCommand.Parameters["@i_kavisi"].Value = ıgne_kavısı.Text;
myCommand.Parameters.Add("@arayuz",SqlDbType.VarChar);
myCommand.Parameters["@arayuz"].Value = ara_yuzu.Text;
myCommand.Parameters.Add("@kod",SqlDbType.VarChar);
myCommand.Parameters["@kod"].Value = urun_kodu.Text;
myCommand.Parameters.Add("@stok",SqlDbType.Int);
myCommand.Parameters["@stok"].Value = (stok_mıktarı.Text).ToString();
myCommand.Parameters.Add("@g_fiyat",SqlDbType.Float);
myCommand.Parameters["@g_fiyat"].Value = (bırım_fıyatı.Text);
myCommand.Parameters.Add("@s_fiyat",SqlDbType.Float);
myCommand.Parameters["@s_fiyat"].Value =(bırım_fıyatı.Text); myCommand.ExecuteNonQuery();
}
catch (Exception a)
{
MessageBox.Show(a.ToString());
}
}

It keeps giving an error like :



"System.FormatException: Input string was not in a correct format.
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at CES.urun.Tamam_Click(Object sender, EventArgs e) in c:\documents and settings\şirin baba.aikanaro.002\desktop\ces\urun.cs:line 587"


o.k , what can be the problem , according to the articles found in net , there is nor mistake.. Has any one any idea?

Thanks a lot..

AnswerRe: A syntax error or logic? Pin
Dave Kreskowiak24-Apr-05 16:31
mveDave Kreskowiak24-Apr-05 16:31 
GeneralRe: A syntax error or logic? Pin
Anonymous24-Apr-05 19:51
Anonymous24-Apr-05 19:51 
GeneralBinary Reader Pin
24-Apr-05 9:24
suss24-Apr-05 9:24 
GeneralRe: Binary Reader Pin
Dave Kreskowiak24-Apr-05 16:30
mveDave Kreskowiak24-Apr-05 16:30 
GeneralRe: Binary Reader Pin
Kodanda Pani24-Apr-05 19:58
Kodanda Pani24-Apr-05 19:58 
GeneralBinary Reader Pin
Member 190895324-Apr-05 9:19
Member 190895324-Apr-05 9:19 
GeneralRe: Binary Reader Pin
Polis Pilavas24-Apr-05 10:42
Polis Pilavas24-Apr-05 10:42 
QuestionEdit TreeNode text ??? Pin
gyokusei24-Apr-05 6:47
gyokusei24-Apr-05 6:47 
AnswerRe: Edit TreeNode text ??? Pin
Polis Pilavas24-Apr-05 6:55
Polis Pilavas24-Apr-05 6:55 
AnswerRe: Edit TreeNode text ??? Pin
tommazzo24-Apr-05 10:22
tommazzo24-Apr-05 10:22 
AnswerRe: Edit TreeNode text ??? Pin
NassosReyzidis25-Apr-05 23:30
NassosReyzidis25-Apr-05 23:30 
General== or String.Equals() Pin
tommazzo24-Apr-05 6:43
tommazzo24-Apr-05 6:43 
GeneralRe: == or String.Equals() Pin
S. Senthil Kumar24-Apr-05 19:12
S. Senthil Kumar24-Apr-05 19:12 
GeneralRe: == or String.Equals() Pin
tommazzo26-Apr-05 2:48
tommazzo26-Apr-05 2:48 
Generalwin form Pin
vuthaianh24-Apr-05 2:55
vuthaianh24-Apr-05 2:55 
GeneralRe: win form Pin
Polis Pilavas24-Apr-05 3:14
Polis Pilavas24-Apr-05 3:14 
GeneralRe: win form Pin
Nick Parker24-Apr-05 4:35
protectorNick Parker24-Apr-05 4:35 

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.