Click here to Skip to main content
15,923,226 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to retrive max value of a column by using c# Pin
ThatsAlok9-Feb-10 0:03
ThatsAlok9-Feb-10 0:03 
QuestionAuto Start programms Pin
Masterhame8-Feb-10 22:59
Masterhame8-Feb-10 22:59 
AnswerRe: Auto Start programms Pin
Gaurav Dudeja India8-Feb-10 23:05
Gaurav Dudeja India8-Feb-10 23:05 
AnswerRe: Auto Start programms Pin
Luc Pattyn8-Feb-10 23:58
sitebuilderLuc Pattyn8-Feb-10 23:58 
AnswerRe: Auto Start programms Pin
ThatsAlok9-Feb-10 0:07
ThatsAlok9-Feb-10 0:07 
AnswerRe: Auto Start programms Pin
PIEBALDconsult9-Feb-10 3:17
mvePIEBALDconsult9-Feb-10 3:17 
QuestionBackup Sql query Pin
Sivaooty8-Feb-10 22:33
Sivaooty8-Feb-10 22:33 
QuestionChart not working Pin
Wamuti8-Feb-10 22:16
Wamuti8-Feb-10 22:16 
Hi. I am getting data from a MySql Datasource like this:

//server connections
            string hostname = "localhost";
            string username = "root";
            string password = "0000";
           
            // Define the database query    
            string mySelectQuery = "SELECT * FROM report;";

            // Create a database connection object using the connection string    
            MySqlConnection myConnection = new MySqlConnection("server=" + hostname + ";uid=" + username + ";pwd=" + password + ";database=elearning;Charset=latin1;");

            // Create a database command on the connection using query    
            MySqlCommand myCommand = new MySqlCommand(mySelectQuery, myConnection);

            // Set chart data source
            chart1.DataSource = myCommand;

            // Set series members names for the X and Y values 
            chart1.Series["Series 1"].XValueMember = "ExamNumber";
            chart1.Series["Series 1"].YValueMembers = "Percentage";

  
            chart1.DataBind();


I am using the chart control. I got yesterday so probably i should return it before the warranty expires Wink | ;) . There is no error but the chart just won't show when i run the application. What could be wrong.
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.

AnswerRe: Chart not working Pin
Luc Pattyn9-Feb-10 0:01
sitebuilderLuc Pattyn9-Feb-10 0:01 
QuestionCasting Pin
jojoba20108-Feb-10 20:37
jojoba20108-Feb-10 20:37 
AnswerRe: Casting Pin
SeMartens8-Feb-10 20:47
SeMartens8-Feb-10 20:47 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:06
jojoba20108-Feb-10 21:06 
AnswerRe: Casting Pin
SeMartens8-Feb-10 21:09
SeMartens8-Feb-10 21:09 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:12
jojoba20108-Feb-10 21:12 
AnswerRe: Casting Pin
SeMartens8-Feb-10 21:15
SeMartens8-Feb-10 21:15 
AnswerRe: Casting Pin
AspDotNetDev8-Feb-10 23:14
protectorAspDotNetDev8-Feb-10 23:14 
AnswerRe: Casting Pin
Jaime Olivares8-Feb-10 21:06
Jaime Olivares8-Feb-10 21:06 
QuestionRe: Casting Pin
jojoba20108-Feb-10 21:10
jojoba20108-Feb-10 21:10 
AnswerRe: Casting Pin
Richard MacCutchan8-Feb-10 21:30
mveRichard MacCutchan8-Feb-10 21:30 
GeneralRe: Casting Pin
ThatsAlok9-Feb-10 0:17
ThatsAlok9-Feb-10 0:17 
GeneralRe: Casting Pin
Richard MacCutchan9-Feb-10 0:18
mveRichard MacCutchan9-Feb-10 0:18 
AnswerRe: Casting Pin
ThatsAlok9-Feb-10 0:16
ThatsAlok9-Feb-10 0:16 
AnswerRe: Casting Pin
V.8-Feb-10 21:24
professionalV.8-Feb-10 21:24 
AnswerRe: Casting Pin
AspDotNetDev8-Feb-10 23:10
protectorAspDotNetDev8-Feb-10 23:10 
QuestionHow to get DB Backup & Restore in Client machine Pin
Sivaooty8-Feb-10 20:03
Sivaooty8-Feb-10 20:03 

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.