This is a migrated thread and some comments may be shown as answers.

ContentTemplate

1 Answer 80 Views
Window
This is a migrated thread and some comments may be shown as answers.
Osman Saeed
Top achievements
Rank 1
Osman Saeed asked on 06 Jan 2010, 08:20 PM
Hi,
    Q3 has the new capability of using the contentTemplate which is great. Now how can i access the server controls inside the contentTemplate. If i have tones of controls on the window, i do not want to do the FindControl. Thanks,

Regards,

Osman

1 Answer, 1 is accepted

Sort by
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 07 Jan 2010, 02:53 AM
I don't think there's a way around that, but you could make get properties which do the FindControl perhaps?  Or a class where you pass in the window reference which exposes the controls as properties?

I hate using things like LoginView controls for this reason :)


Tags
Window
Asked by
Osman Saeed
Top achievements
Rank 1
Answers by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or