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

C#

 
GeneralRe: how to change connection string of crystal report. Pin
Colin Angus Mackay13-Aug-07 2:46
Colin Angus Mackay13-Aug-07 2:46 
Questioncombo box Pin
costavo12-Aug-07 23:19
costavo12-Aug-07 23:19 
AnswerRe: combo box Pin
Keith Barrow12-Aug-07 23:35
professionalKeith Barrow12-Aug-07 23:35 
AnswerRe: combo box Pin
Michael Sync12-Aug-07 23:38
Michael Sync12-Aug-07 23:38 
GeneralRe: combo box Pin
Michael Sync12-Aug-07 23:40
Michael Sync12-Aug-07 23:40 
AnswerRe: combo box Pin
Nouman Bhatti12-Aug-07 23:56
Nouman Bhatti12-Aug-07 23:56 
GeneralRe: combo box Pin
costavo13-Aug-07 0:02
costavo13-Aug-07 0:02 
GeneralRe: combo box Pin
Michael Sync13-Aug-07 16:49
Michael Sync13-Aug-07 16:49 
costavo wrote:
please would u give a code example


As I replied here,[^]

<br />
SqlConnection dbConn = new SqlConnection(connectionString);<br />
<br />
dbConn.Open();<br />
<br />
SqlDataAdapter da = new SqlDataAdapter("SELECT town,postal FROM table1", dbConn);<br />
DataSet ds = new DataSet();<br />
da.Fill(ds);<br />
<br />
dbConn.Close();<br />
<br />
DropDownList1.DataSource = ds.Tables[0];<br />
DropDownList1.DataTextField = "town";<br />
DropDownList1.DataValueField = "postalcode";<br />
DropDownList1.DataBind();




Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)

QuestionWPF Top level exception handling problem Pin
Keith Barrow12-Aug-07 23:09
professionalKeith Barrow12-Aug-07 23:09 
QuestionC# directX how to getit up? Pin
mercenary0112-Aug-07 22:58
mercenary0112-Aug-07 22:58 
AnswerRe: C# directX how to getit up? Pin
stancrm12-Aug-07 23:09
stancrm12-Aug-07 23:09 
AnswerRe: C# directX how to getit up? Pin
Talal Sultan12-Aug-07 23:11
Talal Sultan12-Aug-07 23:11 
QuestionUPnP AV Client in C# Pin
N-O-R-B-E-R-T12-Aug-07 22:37
N-O-R-B-E-R-T12-Aug-07 22:37 
AnswerRe: UPnP AV Client in C# Pin
leppie12-Aug-07 23:39
leppie12-Aug-07 23:39 
AnswerRe: UPnP AV Client in C# Pin
leppie12-Aug-07 23:40
leppie12-Aug-07 23:40 
Questionhow to setup C# TCPClient timeout Pin
George_George12-Aug-07 22:36
George_George12-Aug-07 22:36 
QuestionConnection to SQL ! Pin
mrkeivan12-Aug-07 21:59
mrkeivan12-Aug-07 21:59 
AnswerRe: Connection to SQL ! Pin
Giorgi Dalakishvili12-Aug-07 22:09
mentorGiorgi Dalakishvili12-Aug-07 22:09 
Questionvertical align in richtextbox Pin
Cuciu12-Aug-07 21:38
Cuciu12-Aug-07 21:38 
Questionc# - Painting problem Pin
T.D.Prasad12-Aug-07 21:27
T.D.Prasad12-Aug-07 21:27 
AnswerRe: c# - Painting problem Pin
Albu Marius12-Aug-07 22:31
Albu Marius12-Aug-07 22:31 
AnswerRe: c# - Painting problem Pin
Cuciu12-Aug-07 22:42
Cuciu12-Aug-07 22:42 
QuestionRe: c# - Painting problem Pin
T.D.Prasad12-Aug-07 23:51
T.D.Prasad12-Aug-07 23:51 
AnswerRe: c# - Painting problem Pin
Christian Graus13-Aug-07 0:31
protectorChristian Graus13-Aug-07 0:31 
AnswerRe: c# - Painting problem Pin
Christian Graus12-Aug-07 23:52
protectorChristian Graus12-Aug-07 23:52 

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.