Friday, April 27, 2012 7:09 AM
I have a requirement to display all the activities scheduled in a calendar year to be displayed in a dashboard / tabular format, where the name of the months form the name of the columns and the days of the month form the reference to the rows. So, I've created a ASP:Table foe it and defined the ASP:tablerows and ASP;Tablecells and placed a label in every ASP:tablecell and am using a logic to zero in on the label's ID and setting its text using the following lines, where dummy2 and str are strings. str stores the activity to be displayed and dummy2, the id of the label where the activity name needs to be displayed.
Labellbl7 = (Label)FindControl(dummy2);
lbl7.Text = str;
Is there a more efficient way of doing this?
- Moved by Mike DanesMicrosoft Community Contributor Friday, April 27, 2012 8:31 AM off-topic for c++ (From:Visual C++ General)