Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell19-Jun-15 4:44
Norris Chappell19-Jun-15 4:44 
GeneralRe: Trying to sum several fields into a total field Pin
Richard MacCutchan19-Jun-15 7:02
mveRichard MacCutchan19-Jun-15 7:02 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell19-Jun-15 7:23
Norris Chappell19-Jun-15 7:23 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell19-Jun-15 5:35
Norris Chappell19-Jun-15 5:35 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell19-Jun-15 9:30
Norris Chappell19-Jun-15 9:30 
AnswerRe: Trying to sum several fields into a total field Pin
Agent__00718-Jun-15 20:30
professionalAgent__00718-Jun-15 20:30 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell18-Jun-15 20:36
Norris Chappell18-Jun-15 20:36 
GeneralRe: Trying to sum several fields into a total field Pin
Richard MacCutchan18-Jun-15 22:05
mveRichard MacCutchan18-Jun-15 22:05 
The ids of the textboxes in your ASP file do not (as far as I can see) match the names you are using in your code. Also coding a line such as
C#
int lblQtr1 = int.Parse(Q1IntProc.Text) + int.Parse(Q1IntProj.Text) + int.Parse(Q1ExtBSI.Text) + int.Parse(Q1ExtCMMI.Text);

is asking for trouble. You have no idea what may be in any of the text fields, so if the user enters garbage it will just fail. You shoud use int.TryParse to capture the numeric values, so you can alert the user if any is invalid. You should also assign each value to an individual variable before summing them. That way, you can debug it much more easily.
GeneralRe: Trying to sum several fields into a total field Pin
Agent__00718-Jun-15 23:23
professionalAgent__00718-Jun-15 23:23 
GeneralRe: Trying to sum several fields into a total field Pin
Norris Chappell19-Jun-15 3:25
Norris Chappell19-Jun-15 3:25 
QuestionFind 2 Dates A DateTime Falls between From Dictionary Pin
Kevin Marois18-Jun-15 6:38
professionalKevin Marois18-Jun-15 6:38 
AnswerRe: Find 2 Dates A DateTime Falls between From Dictionary Pin
Sascha Lefèvre18-Jun-15 6:56
professionalSascha Lefèvre18-Jun-15 6:56 
SuggestionRe: Find 2 Dates A DateTime Falls between From Dictionary Pin
Sascha Lefèvre19-Jun-15 4:30
professionalSascha Lefèvre19-Jun-15 4:30 
QuestionReadout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Member 1177535418-Jun-15 4:56
Member 1177535418-Jun-15 4:56 
AnswerRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Dave Kreskowiak18-Jun-15 5:36
mveDave Kreskowiak18-Jun-15 5:36 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Member 1177560018-Jun-15 6:50
Member 1177560018-Jun-15 6:50 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Dave Kreskowiak18-Jun-15 9:22
mveDave Kreskowiak18-Jun-15 9:22 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Member 1177535418-Jun-15 9:54
Member 1177535418-Jun-15 9:54 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Dave Kreskowiak18-Jun-15 10:03
mveDave Kreskowiak18-Jun-15 10:03 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Member 1177535418-Jun-15 10:09
Member 1177535418-Jun-15 10:09 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Dave Kreskowiak18-Jun-15 10:15
mveDave Kreskowiak18-Jun-15 10:15 
GeneralRe: Readout datagrid in PowerPoint 2010 and insert datas in new PowerPoint slide Pin
Member 1177535418-Jun-15 10:19
Member 1177535418-Jun-15 10:19 
Questionc#(Invalid attempt to call HasRows when reader is closed)occurred when i was using the following query in 3tier Pin
Member 1129409418-Jun-15 1:19
Member 1129409418-Jun-15 1:19 
AnswerRe: c#(Invalid attempt to call HasRows when reader is closed)occurred when i was using the following query in 3tier Pin
Pete O'Hanlon18-Jun-15 1:26
mvePete O'Hanlon18-Jun-15 1:26 
SuggestionRe: c#(Invalid attempt to call HasRows when reader is closed)occurred when i was using the following query in 3tier Pin
Sascha Lefèvre18-Jun-15 1:46
professionalSascha Lefèvre18-Jun-15 1:46 

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.