Click here to Skip to main content
15,892,298 members
Home / Discussions / C#
   

C#

 
QuestionWeb Services: How to change http header of the request Pin
mishakogan16-Sep-07 18:36
mishakogan16-Sep-07 18:36 
QuestionHow to call a Function in VC++ from C#? Pin
ss43116-Sep-07 18:26
ss43116-Sep-07 18:26 
AnswerRe: How to call a Function in VC++ from C#? Pin
Niiiissssshhhhhuuuuu16-Sep-07 21:20
Niiiissssshhhhhuuuuu16-Sep-07 21:20 
AnswerRe: How to call a Function in VC++ from C#? Pin
N a v a n e e t h16-Sep-07 23:15
N a v a n e e t h16-Sep-07 23:15 
QuestionHow to Generate events from strings Pin
Amar Chaudhary16-Sep-07 18:17
Amar Chaudhary16-Sep-07 18:17 
AnswerRe: How to Generate events from strings Pin
Urs Enzler16-Sep-07 20:54
Urs Enzler16-Sep-07 20:54 
AnswerRe: How to Generate events from strings Pin
RaviBattula17-Sep-07 0:03
professionalRaviBattula17-Sep-07 0:03 
QuestionHelp reading data Pin
falles0116-Sep-07 16:56
falles0116-Sep-07 16:56 
Can anyopne please tell me whyn this isn't reading data from the database? I'm trying to save multiple entries to the database based on checkedlist box selections. I really need my code proofread. Can someone please tell me in code example what I'm doing wrong? Malcolm is hopefully going to help me but since I'm desperate I am trying to get the quickest help possible and not sure if he'll get back to me in time.I've been trying this for a week by the way.
It's for ado.net.
<br />
SqlConnection adoConn = new SqlConnection("server = ADMMSAS7;database=Dev_RST;Trusted_Connection=yes");<br />
                        adoConn.Open();<br />
<br />
<br />
                                                string sql = "select ProgLanguagesDatabase from TechnicalSkills";<br />
                                            SqlCommand adoCmd = new SqlCommand(sql, adoConn);<br />
                       SqlDataReader adoDR = adoCmd.ExecuteReader();<br />
<br />
                                             string TechnicalSkills = (string)adoDR["ProgLanguagesDatabase"];<br />
                      int TechnicalSkillsID = (int)adoDR["TechnicalSkillsID"];<br />
<br />
<br />
                        if (adoDR.HasRows)<br />
                        {<br />
                            while (adoDR.Read())<br />
                            {<br />
                              <br />
                                                              if (techSkillsCheckListBox2.CheckedItems.Count != 0)<br />
                                {<br />
<br />
                                    for (int x = 0; x <= techSkillsCheckListBox2.CheckedItems.Count - 1; x++)<br />
                                    {<br />
                                        if (techSkillsCheckListBox2.CheckedItems[x].Equals(TechnicalSkills))<br />
                                        {<br />
                                          <br />
                                          sql = "Insert into EmpSkills(EmployeeID,TechnicalSkillsID) values ('" + this.EmployeeID + "','" + techSkillsCheckListBox2.CheckedItems.ToString() + "')";<br />


Sianny aka Sharny
AnswerRe: Help reading data Pin
Paul Conrad16-Sep-07 17:18
professionalPaul Conrad16-Sep-07 17:18 
GeneralRe: Help reading data Pin
falles0116-Sep-07 17:21
falles0116-Sep-07 17:21 
GeneralRe: Help reading data Pin
Paul Conrad16-Sep-07 17:27
professionalPaul Conrad16-Sep-07 17:27 
QuestionReading Big Endian Values Pin
Klazen16-Sep-07 16:39
Klazen16-Sep-07 16:39 
AnswerRe: Reading Big Endian Values Pin
Paul Conrad16-Sep-07 17:19
professionalPaul Conrad16-Sep-07 17:19 
GeneralRe: Reading Big Endian Values Pin
Klazen17-Sep-07 9:02
Klazen17-Sep-07 9:02 
Questionrelating between a winform and a web form Pin
H.R16-Sep-07 12:40
H.R16-Sep-07 12:40 
AnswerRe: relating between a winform and a web form Pin
Christian Graus16-Sep-07 12:48
protectorChristian Graus16-Sep-07 12:48 
AnswerRe: relating between a winform and a web form Pin
Paul Conrad16-Sep-07 13:08
professionalPaul Conrad16-Sep-07 13:08 
Questionmy Form goes blank Pin
gizmokaka16-Sep-07 12:29
gizmokaka16-Sep-07 12:29 
AnswerRe: my Form goes blank Pin
Mark Churchill16-Sep-07 12:36
Mark Churchill16-Sep-07 12:36 
GeneralRe: my Form goes blank Pin
gizmokaka16-Sep-07 12:43
gizmokaka16-Sep-07 12:43 
QuestionHow to draw the table? Pin
Seryoga16-Sep-07 11:19
Seryoga16-Sep-07 11:19 
AnswerRe: How to draw the table? Pin
Christian Graus16-Sep-07 12:20
protectorChristian Graus16-Sep-07 12:20 
GeneralRe: How to draw the table? Pin
Seryoga16-Sep-07 12:33
Seryoga16-Sep-07 12:33 
AnswerRe: How to draw the table? Pin
Guffa16-Sep-07 12:43
Guffa16-Sep-07 12:43 
GeneralRe: How to draw the table? Pin
Seryoga16-Sep-07 19:24
Seryoga16-Sep-07 19:24 

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.