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

C#

 
GeneralRe: Define me a practice please! Pin
mehrdadc4830-Jan-10 2:08
mehrdadc4830-Jan-10 2:08 
GeneralRe: Define me a practice please! Pin
#realJSOP30-Jan-10 2:23
mve#realJSOP30-Jan-10 2:23 
GeneralRe: Define me a practice please! Pin
mehrdadc4830-Jan-10 2:29
mehrdadc4830-Jan-10 2:29 
GeneralRe: Define me a practice please! Pin
Pete O'Hanlon30-Jan-10 2:30
mvePete O'Hanlon30-Jan-10 2:30 
AnswerRe: Define me a practice please! Pin
Mycroft Holmes30-Jan-10 15:35
professionalMycroft Holmes30-Jan-10 15:35 
Questionadding data to database from combobox Pin
Erdinc2730-Jan-10 1:32
Erdinc2730-Jan-10 1:32 
AnswerRe: adding data to database from combobox Pin
Alex Manolescu30-Jan-10 2:53
Alex Manolescu30-Jan-10 2:53 
GeneralRe: adding data to database from combobox Pin
Erdinc2730-Jan-10 3:33
Erdinc2730-Jan-10 3:33 
hey man thanks for reply ...i created the cmd object like below
SqlCommand cmd; (i declared it global)
cmd= new SqlCommand("select distinct firma from Rehber", con);

and my SQL sentence is like that and i insert like below
cmd = new SqlCommand("insert into Rehber (ad_syd,firma,sektor,grup,cep_no,is_no,ev_no,fax,mail,web,msn,skype,adres,ilce,sehir,vergi_no,vrgi_daire,dgm_tarih) values (@ad_syd,@firma,@sektor,@grup,@cep_no,@is_no,@ev_no,@fax,@mail,@web,@msn,@skype,@adres,@ilce,@sehir,@vergi_no,@vrgi_daire,@dgm_tarih)", con);

cmd.Parameters.AddWithValue("@ad_syd",txtAdSyd.Text);
cmd.Parameters.AddWithValue("@firma",cmbFirma.SelectedValue.ToString());
cmd.Parameters.AddWithValue("@dgm_tarih", dateTimePicker1.Value);
cmd.Parameters.AddWithValue("@sektor",txtsektor.Text);
cmd.Parameters.AddWithValue("@grup", txtGrup.Text);
cmd.Parameters.AddWithValue("@cep_no", txtCep.Text);
cmd.Parameters.AddWithValue("@is_no",txtisTlf.Text);
cmd.Parameters.AddWithValue("@ev_no",txtEvTlf.Text);
cmd.Parameters.AddWithValue("@fax",txtFax.Text);
cmd.Parameters.AddWithValue("@mail", txtMail.Text);
cmd.Parameters.AddWithValue("@web", txtURL.Text);
cmd.Parameters.AddWithValue("@msn", txtMSn.Text);
cmd.Parameters.AddWithValue("@skype", txtSkype.Text);
cmd.Parameters.AddWithValue("@adres",txtAdres.Text);
cmd.Parameters.AddWithValue("@ilce", txtIlce.Text);
cmd.Parameters.AddWithValue("@sehir",txtSehir.Text);
cmd.Parameters.AddWithValue("@vergi_no", txtVergiNo.Text);
cmd.Parameters.AddWithValue("@vrgi_daire", txtVergiDaire.Text);
GeneralRe: adding data to database from combobox Pin
Alex Manolescu30-Jan-10 4:49
Alex Manolescu30-Jan-10 4:49 
GeneralRe: adding data to database from combobox Pin
Erdinc2730-Jan-10 23:53
Erdinc2730-Jan-10 23:53 
GeneralRe: adding data to database from combobox Pin
Alex Manolescu31-Jan-10 8:51
Alex Manolescu31-Jan-10 8:51 
GeneralRe: adding data to database from combobox Pin
Erdinc2731-Jan-10 21:27
Erdinc2731-Jan-10 21:27 
GeneralRe: adding data to database from combobox Pin
Alex Manolescu31-Jan-10 21:35
Alex Manolescu31-Jan-10 21:35 
QuestionShowing data from a database to a listbox during runtime Pin
gamer112729-Jan-10 23:47
gamer112729-Jan-10 23:47 
AnswerRe: Showing data from a database to a listbox during runtime Pin
OriginalGriff29-Jan-10 23:52
mveOriginalGriff29-Jan-10 23:52 
JokeRe: Showing data from a database to a listbox during runtime Pin
DaveyM6930-Jan-10 0:09
professionalDaveyM6930-Jan-10 0:09 
GeneralRe: Showing data from a database to a listbox during runtime Pin
OriginalGriff30-Jan-10 0:22
mveOriginalGriff30-Jan-10 0:22 
GeneralOT Pin
DaveyM6930-Jan-10 2:01
professionalDaveyM6930-Jan-10 2:01 
GeneralRe: Showing data from a database to a listbox during runtime Pin
gamer112730-Jan-10 2:15
gamer112730-Jan-10 2:15 
GeneralRe: Showing data from a database to a listbox during runtime Pin
OriginalGriff30-Jan-10 2:27
mveOriginalGriff30-Jan-10 2:27 
GeneralRe: Showing data from a database to a listbox during runtime Pin
gamer112730-Jan-10 5:48
gamer112730-Jan-10 5:48 
GeneralRe: Showing data from a database to a listbox during runtime Pin
OriginalGriff30-Jan-10 5:58
mveOriginalGriff30-Jan-10 5:58 
GeneralRe: Showing data from a database to a listbox during runtime Pin
gamer112730-Jan-10 6:08
gamer112730-Jan-10 6:08 
AnswerRe: Showing data from a database to a listbox during runtime Pin
sanforjackass30-Jan-10 0:31
sanforjackass30-Jan-10 0:31 
QuestionQuestion about Session Pin
YiXiang_8929-Jan-10 22:20
YiXiang_8929-Jan-10 22:20 

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.