basically i would like to add up the total size of all the files for a particular user and display it in a label...this is what i have so far:
SqlConnection myConnection = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\ASPNETDB.MDF;Integrated Security=True;Connect Timeout=30;User Instance=True");
myConnection.Open();
SqlCommand myFileCommand = new SqlCommand("SELECT SUM (fileSize) FROM aspnet_Files WHERE fileOwner = '" + this.User.Identity.Name + "'", myConnection);
myFileCommand.ExecuteNonQuery();
lblTotalSpaceUsed.Text = >>>result of the sql statement here?<<<
myConnection.Close();
just wondering how you set the label text to the result of the sql statement, thanks for help
regards