C
Colin Basterfield
Hi,
I have some placeholders in my .aspx file, and when I add my controls to
them at runtime I want them to appear in specific positions on the web form,
however there are already some controls that appear statically, but the run
time created controls overwrite them, so is there a way to force the dynamic
controls to appear below them, or anywhere I choose really?
Also my PlaceHolders have ids of "actname1", "actname2", "actname3" etc, so
is there a way that in my code I can use the same code to effectively do
this for each
Label aLabel = new Label();
aLabel.Text = dataRow["activity_name"].ToString()
actname1.Controls.Add(aLabel)
All I want to do is add the appropriate number to the tail end of the
placeholder id, so something like
actname + <rownumber>.Controls.Add(aLabel)
I guess I could iterate thro the Page controls find all the placeholders and
store their references in a list using the row number as an index to the
appropriate placeholder reference???
Any thoughts out there on Xmas Eve, well it is here in NZ!
TIA
Colin B
I have some placeholders in my .aspx file, and when I add my controls to
them at runtime I want them to appear in specific positions on the web form,
however there are already some controls that appear statically, but the run
time created controls overwrite them, so is there a way to force the dynamic
controls to appear below them, or anywhere I choose really?
Also my PlaceHolders have ids of "actname1", "actname2", "actname3" etc, so
is there a way that in my code I can use the same code to effectively do
this for each
Label aLabel = new Label();
aLabel.Text = dataRow["activity_name"].ToString()
actname1.Controls.Add(aLabel)
All I want to do is add the appropriate number to the tail end of the
placeholder id, so something like
actname + <rownumber>.Controls.Add(aLabel)
I guess I could iterate thro the Page controls find all the placeholders and
store their references in a list using the row number as an index to the
appropriate placeholder reference???
Any thoughts out there on Xmas Eve, well it is here in NZ!
TIA
Colin B