Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Post
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
4
Reply
Trying to sum several fields into a total field
Norris Chappell
9 years ago
506
Reply
Requirement
Year
Qtr. 1
Internal Process
Internal Project
External BSI
External CMMI
CMMI CAM SG 1
2015
7
4
1
0
2
I am trying to sum several fields into one.
This code is giving me an error that these 4 fields do not exist in the current context.
protected void gvInternalAudit_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label Qtr1 = (Label)e.Row.FindControl("lblQtr1");
int lblQtr1 = int.Parse(Q1IntProc.Text) + int.Parse(Q1IntProj.Text) + int.Parse(Q1ExtBSI.Text) + int.Parse(Q1ExtCMMI.Text);
Qtr1.Text = Qtr1.ToString();
}
}
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
convert string length into binary number
Google Analytics API in .NET