other problem

Apr 23 2013 4:55 AM
hi dude do not mistake me.... i had get  other problem 

            Cone = new SqlConnection(connstring);
           Cone.Open();
                Come=new SqlCommand("insert into cheque values("+chno.Text+","+amo.Text+","+Date.Text+","+Towhom.Text+","+Purpo.Text+"')",Cone);
                try
                {
                    Come.ExecuteNonQuery();
                    MessageBox.Show("Saved............");
                }
                catch (Exception)
                {
                    MessageBox.Show("not saved......");
                }
                finally
                {
                    Cone.Close();
                }

if i check i have get catch details only what about that problem........
chno.Text=int
amo.Text=money
Date.Text=date
Towhom.Text=nvarchar(max)
Purpo.Text=nvarchar(max)

                please help me dude.


Answers (1)