Click here to Skip to main content
15,884,598 members
Home / Discussions / C#
   

C#

 
GeneralRe: Please don't remove messages. Pin
Luc Pattyn12-Apr-11 2:41
sitebuilderLuc Pattyn12-Apr-11 2:41 
GeneralRe: Please don't remove messages. Pin
Pete O'Hanlon12-Apr-11 3:01
mvePete O'Hanlon12-Apr-11 3:01 
GeneralRe: Please don't remove messages. Pin
OriginalGriff12-Apr-11 8:29
mveOriginalGriff12-Apr-11 8:29 
GeneralRe: Please don't remove messages. Pin
Luc Pattyn12-Apr-11 9:46
sitebuilderLuc Pattyn12-Apr-11 9:46 
GeneralRe: Please don't remove messages. Pin
OriginalGriff12-Apr-11 9:56
mveOriginalGriff12-Apr-11 9:56 
GeneralRe: Please don't remove messages. Pin
John-ph12-Apr-11 3:43
John-ph12-Apr-11 3:43 
QuestionOnline Database Pin
nEar_mO11-Apr-11 23:05
nEar_mO11-Apr-11 23:05 
AnswerRe: Online Database Pin
OriginalGriff11-Apr-11 23:52
mveOriginalGriff11-Apr-11 23:52 
Assuming the database is on the webserver, just connect to it as if it was your local machine in the codebehind.
using (MySqlConnection con = new MySqlConnection(connectionString))
    {
    con.Open();
    using (MySqlCommand com = new MySqlCommand("SELECT * FROM Customers ORDER BY Year(date), Month(date), Day(date)", con))
        {
        MySqlDataReader r = com.ExecuteReader();
        while (r.Read())
            {
            // Do something with the reader.
            }
        }

Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.

Manfred R. Bihy: "Looks as if OP is learning resistant."

AnswerRe: Online Database Pin
Eddy Vluggen12-Apr-11 0:08
professionalEddy Vluggen12-Apr-11 0:08 
GeneralRe: Online Database Pin
nEar_mO12-Apr-11 17:38
nEar_mO12-Apr-11 17:38 
AnswerRe: Online Database Pin
thatraja12-Apr-11 18:11
professionalthatraja12-Apr-11 18:11 
AnswerRe: Online Database Pin
Eddy Vluggen12-Apr-11 20:56
professionalEddy Vluggen12-Apr-11 20:56 
AnswerRe: Online Database Pin
PIEBALDconsult12-Apr-11 2:48
mvePIEBALDconsult12-Apr-11 2:48 
QuestionNetwork Transaction Pin
nEar_mO11-Apr-11 22:59
nEar_mO11-Apr-11 22:59 
AnswerRe: Network Transaction Pin
OriginalGriff11-Apr-11 23:53
mveOriginalGriff11-Apr-11 23:53 
QuestionWorks from Visual Studio only Pin
D_Ana11-Apr-11 9:20
D_Ana11-Apr-11 9:20 
AnswerRe: Works from Visual Studio only Pin
Pete O'Hanlon11-Apr-11 9:51
mvePete O'Hanlon11-Apr-11 9:51 
AnswerRe: Works from Visual Studio only Pin
Wayne Gaylard11-Apr-11 22:25
professionalWayne Gaylard11-Apr-11 22:25 
GeneralRe: Works from Visual Studio only Pin
D_Ana13-Apr-11 6:31
D_Ana13-Apr-11 6:31 
QuestionHow do I cast a double to an int? Pin
Justiin126511-Apr-11 7:18
Justiin126511-Apr-11 7:18 
AnswerRe: How do I cast a double to an int? Pin
Eddy Vluggen11-Apr-11 7:25
professionalEddy Vluggen11-Apr-11 7:25 
GeneralRe: How do I cast a double to an int? Pin
Justiin126511-Apr-11 7:44
Justiin126511-Apr-11 7:44 
AnswerRe: How do I cast a double to an int? Pin
Eddy Vluggen11-Apr-11 8:09
professionalEddy Vluggen11-Apr-11 8:09 
GeneralRe: How do I cast a double to an int? Pin
David198711-Apr-11 7:35
David198711-Apr-11 7:35 
GeneralRe: How do I cast a double to an int? Pin
Justiin126511-Apr-11 7:45
Justiin126511-Apr-11 7:45 

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.