D
dresde from NYC
Hi there!
Hopefully somebody can help as I am getting desperate.
I am using C# to develope a web user control containing a DataList and I
want my DataList to look different depending on some control properties.
To achieve that I use "Page.LoadTemplate (myTemplateName)". I do this on my
OnInit event to make sure my controls are created before LoadViewState etc
and avoid problems when posting back.
My problem is that I need to pass the name of the template to load during
OnInit. Therefore I cannot use the control properties yet. Any idea how to do
this? I have read all the articles about dynamic controls etc but I can't
find anything
Any help/hint/suggestion/comment/question will be greatly appreciated
Thanks in advance!
Diana Carrasco, NYC
Hopefully somebody can help as I am getting desperate.
I am using C# to develope a web user control containing a DataList and I
want my DataList to look different depending on some control properties.
To achieve that I use "Page.LoadTemplate (myTemplateName)". I do this on my
OnInit event to make sure my controls are created before LoadViewState etc
and avoid problems when posting back.
My problem is that I need to pass the name of the template to load during
OnInit. Therefore I cannot use the control properties yet. Any idea how to do
this? I have read all the articles about dynamic controls etc but I can't
find anything
Any help/hint/suggestion/comment/question will be greatly appreciated
Thanks in advance!
Diana Carrasco, NYC