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

[Solved] Programmatically change controls in design view

2 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
William Corry
Top achievements
Rank 1
William Corry asked on 27 Apr 2009, 11:57 AM
Is it possible to programmatically open a web page in design view (in visual studio), loop through all of the controls and change the properties of every instance of one type of control?  For instance, I'd like to change to change to background color of every textbox on a page.  If I have a large number of textboxes on many webpages a programmatic approach to this is a real time saver.  An example of the general approach would be most helpful.

Thanks,

2 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 27 Apr 2009, 01:37 PM
Hi William Corry,

This is possible but requires knowledge of Visual Studio extensibility. It would be easier to change the background color via a ASP.NET theme or simply by using CSS.

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
William Corry
Top achievements
Rank 1
answered on 27 Apr 2009, 03:58 PM
Thanks, that's the information I needed.
Tags
General Discussions
Asked by
William Corry
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
William Corry
Top achievements
Rank 1
Share this question
or