Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
QuestionAccess web page text from C# Pin
Mark T.19-Feb-07 23:32
Mark T.19-Feb-07 23:32 
AnswerRe: Access web page text from C# Pin
patt20-Feb-07 0:04
patt20-Feb-07 0:04 
GeneralRe: Access web page text from C# - Not Yet Pin
Mark T.20-Feb-07 1:40
Mark T.20-Feb-07 1:40 
GeneralRe: Access web page text from C# - Not Yet Pin
patt20-Feb-07 1:55
patt20-Feb-07 1:55 
GeneralRe: Access web page text from C# - Not Yet Pin
__DanC__20-Feb-07 2:17
__DanC__20-Feb-07 2:17 
AnswerAdditional Information - accessing web page Pin
Mark T.20-Feb-07 3:54
Mark T.20-Feb-07 3:54 
QuestionUse a Combo box in a function ! [modified] Pin
mrkeivan19-Feb-07 23:03
mrkeivan19-Feb-07 23:03 
AnswerRe: Use a Combo box in a function ! Pin
Stefan Troschuetz19-Feb-07 23:16
Stefan Troschuetz19-Feb-07 23:16 
Why not pass in the ComboBox itself.?
void FillIn(string Tbl, string Fld, ComboBox comboBox)
{
  ComboBoxCBDS.Clear();
  ComboBoxCBDA.SelectCommand = new SqlCommand("Select * from " + Tbl + " Order By " + Fld, ItemsConn);
  ComboBoxCBDA.Fill(ComboBoxCBDS, Tbl);
  comboBox.DataSource = ComboBoxCBDS.Tables[Tbl];
  comboBox.DisplayMember = Fld;
  comboBox.ValueMember = Fld;
}

By the way, you should use parameterized queries instead of concatenating the query string. Take a look at this article here on CP: SQL Injection Attacks and Some Tips on How to Prevent Them[^]


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

QuestionMessagebox to return a variable Pin
Glen Harvy19-Feb-07 22:41
Glen Harvy19-Feb-07 22:41 
AnswerRe: Messagebox to return a variable Pin
Christian Graus19-Feb-07 22:51
protectorChristian Graus19-Feb-07 22:51 
GeneralRe: Messagebox to return a variable Pin
Glen Harvy20-Feb-07 1:35
Glen Harvy20-Feb-07 1:35 
AnswerRe: Messagebox to return a variable Pin
PandemoniumPasha19-Feb-07 22:52
PandemoniumPasha19-Feb-07 22:52 
GeneralRe: Messagebox to return a variable Pin
Christian Graus19-Feb-07 22:55
protectorChristian Graus19-Feb-07 22:55 
GeneralRe: Messagebox to return a variable [modified] Pin
Glen Harvy20-Feb-07 1:36
Glen Harvy20-Feb-07 1:36 
Questiona query Pin
Nekshan19-Feb-07 22:36
Nekshan19-Feb-07 22:36 
AnswerRe: a query Pin
PandemoniumPasha19-Feb-07 22:48
PandemoniumPasha19-Feb-07 22:48 
AnswerRe: a query Pin
Christian Graus19-Feb-07 22:54
protectorChristian Graus19-Feb-07 22:54 
GeneralRe: a query Pin
V.19-Feb-07 23:49
professionalV.19-Feb-07 23:49 
GeneralRe: a query Pin
Colin Angus Mackay19-Feb-07 23:50
Colin Angus Mackay19-Feb-07 23:50 
GeneralRe: a query Pin
Christian Graus20-Feb-07 10:59
protectorChristian Graus20-Feb-07 10:59 
AnswerRe: a query Pin
virendra patel19-Feb-07 22:56
virendra patel19-Feb-07 22:56 
GeneralRe: a query Pin
V.19-Feb-07 23:48
professionalV.19-Feb-07 23:48 
GeneralRe: a query Pin
Christian Graus20-Feb-07 11:03
protectorChristian Graus20-Feb-07 11:03 
GeneralRe: a query Pin
V.20-Feb-07 20:04
professionalV.20-Feb-07 20:04 
AnswerRe: a query Pin
V.19-Feb-07 23:47
professionalV.19-Feb-07 23:47 

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.