Xaisoft
Xaisoft

Reputation: 46611

Do only top-level controls show up in the aspx.designer.cs file?

If I have a simple aspx page and I add some labels and textboxes and a repeater to it, they will show up in the asp.designer.cs file, right? Do labels and other controls inside a repeater show up in the designer or are they just for top-level controls. I added a label to a repeater and I didn't see it in the designer, so I tried to add it manually, but everytime I did a build, it would remove it from the designer file.

Upvotes: 0

Views: 136

Answers (1)

zakster82
zakster82

Reputation: 244

As I understand it the designer file only shows top level controls... the controls inside templates for data controls such as the repeater don't exist until run-time.

Upvotes: 1

Related Questions