Hi,
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.
Label
lbl7 = (Label)FindControl(dummy2);lbl7.Text = str;
Is there a more efficient way of doing this?
View the full article




Sign In
Create Account
Back to top







