Click here to Skip to main content
15,882,504 members
Home / Discussions / C#
   

C#

 
GeneralRe: disable task manager when called.... Pin
Najmal31-Jan-09 13:12
Najmal31-Jan-09 13:12 
GeneralRe: disable task manager when called.... Pin
Mubeen.asim31-Jan-09 18:19
Mubeen.asim31-Jan-09 18:19 
AnswerRe: disable task manager when called.... Pin
Eddy Vluggen1-Feb-09 0:32
professionalEddy Vluggen1-Feb-09 0:32 
QuestionHow to bind a DataTable selected columns to a DataGridView in Windows Forms Pin
pavanip31-Jan-09 1:40
pavanip31-Jan-09 1:40 
AnswerRe: How to bind a DataTable selected columns to a DataGridView in Windows Forms Pin
Wendelius31-Jan-09 3:05
mentorWendelius31-Jan-09 3:05 
AnswerRe: How to bind a DataTable selected columns to a DataGridView in Windows Forms Pin
Najmal31-Jan-09 3:30
Najmal31-Jan-09 3:30 
QuestionWeb Service - calling a class method that uses datasets. Pin
CrimeanTurtle200831-Jan-09 0:33
CrimeanTurtle200831-Jan-09 0:33 
AnswerRe: Web Service - calling a class method that uses datasets. Pin
Wendelius31-Jan-09 1:48
mentorWendelius31-Jan-09 1:48 
If you want to return a dataset from the web method, use something like:
[WebMethod] 
public System.Data.Dataset SuggestionsFromDB(string country) 
{
   return ConnectToDB.FilterCustomersByCountry(country);
}

The ConnectToDB is your class for getting the data.

Also note that never use concatenation in the sql statement in a situation like this. You're fully open to SQL injections. So your query should be:
string query = "SELECT DISTINCT COUNTRY FROM CUSTOMERS WHERE COUNTRY LIKE @Country";

and then you define a SqlParameter[^] to give the query a value.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Web Service - calling a class method that uses datasets. Pin
CrimeanTurtle200831-Jan-09 2:53
CrimeanTurtle200831-Jan-09 2:53 
GeneralRe: Web Service - calling a class method that uses datasets. Pin
Wendelius31-Jan-09 2:56
mentorWendelius31-Jan-09 2:56 
QuestionHow to manage a web-page from program/script? Pin
Exceter31-Jan-09 0:04
Exceter31-Jan-09 0:04 
Questionadding menus to minimized form Pin
Mubeen.asim30-Jan-09 23:48
Mubeen.asim30-Jan-09 23:48 
AnswerRe: adding menus to minimized form Pin
Eddy Vluggen31-Jan-09 1:31
professionalEddy Vluggen31-Jan-09 1:31 
GeneralRe: adding menus to minimized form Pin
Mubeen.asim31-Jan-09 2:00
Mubeen.asim31-Jan-09 2:00 
Questioncan a windows service be used to display a message box..? Pin
Mubeen.asim30-Jan-09 23:01
Mubeen.asim30-Jan-09 23:01 
AnswerRe: can a windows service be used to display a message box..? Pin
Wendelius30-Jan-09 23:09
mentorWendelius30-Jan-09 23:09 
GeneralRe: can a windows service be used to display a message box..? Pin
Mubeen.asim30-Jan-09 23:44
Mubeen.asim30-Jan-09 23:44 
GeneralRe: can a windows service be used to display a message box..? Pin
Wendelius31-Jan-09 0:09
mentorWendelius31-Jan-09 0:09 
QuestionServer side function from javascript. Pin
Atul Shriram rane30-Jan-09 23:00
Atul Shriram rane30-Jan-09 23:00 
AnswerRe: Server side function from javascript. Pin
Christian Graus30-Jan-09 23:29
protectorChristian Graus30-Jan-09 23:29 
GeneralRe: Server side function from javascript. Pin
Atul Shriram rane30-Jan-09 23:39
Atul Shriram rane30-Jan-09 23:39 
Questioninherited form Pin
pampam11030-Jan-09 21:59
pampam11030-Jan-09 21:59 
AnswerRe: inherited form Pin
Wendelius30-Jan-09 22:26
mentorWendelius30-Jan-09 22:26 
GeneralRe: inherited form Pin
pampam11030-Jan-09 22:37
pampam11030-Jan-09 22:37 
GeneralRe: inherited form Pin
Wendelius30-Jan-09 22:53
mentorWendelius30-Jan-09 22:53 

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.