T
Tarun Mistry
Hi there, using the following code i see it is possible to load a user
control dynamically and set its properties.
Control c1 = LoadControl("MyUserControl.ascx");
((MyUserControl)c1).BackColor = "beige";
Page.Controls.Add(c1);
However, If i already have a user control on my page, as defined in the
..aspx file, it is possible to change it attributes/properties?
I have a usercontrol called "menu", one of its properties allows you to set
the title of the page. However, id like to alter this title depending on
what information has been submitted via a form, i cant figure out how to
alter its properties before it is rendered.
Please help!
Thanks everyone
Taz
control dynamically and set its properties.
Control c1 = LoadControl("MyUserControl.ascx");
((MyUserControl)c1).BackColor = "beige";
Page.Controls.Add(c1);
However, If i already have a user control on my page, as defined in the
..aspx file, it is possible to change it attributes/properties?
I have a usercontrol called "menu", one of its properties allows you to set
the title of the page. However, id like to alter this title depending on
what information has been submitted via a form, i cant figure out how to
alter its properties before it is rendered.
Please help!
Thanks everyone
Taz