• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 587
  • Last Modified:

ASP.Net Panel Not showing controls when another control has data

I have an asp.net page (ASP.Net 3.5, c# code-behind) with a panel on it. The panel has a few controls in it. 2 textboxes, a dropdownlist, a repeater and 4 buttons. The way I have it set up, when the repeater has rows, it is visible. If the repeater does not have rows, it is not visible. What happens is that when the repeater does have rows, the buttons all get knocked outside the panel. Everything still works functionally. When the repeater does not have rows and is thuus not visible, the buttons show up within the panel as designed. Any idea what is happening and how I can fix it? Thanks.
2 Solutions
Can you show us snapshots of what's happening wrong.

When you say buttons get knocked outside the panel are they appearing in a new line?

They should still be visible inside the panel markup i.e. div.
Rahul AgarwalTeam LeaderCommented:
Have u checked the buttons are inside the panel or outside or any html tag is not closed properly when the panel property is visible false else post the html code.
Roopesh ReddyCommented:

Try separating the control to different panels!

Keep the Repeater control in one Panel and the buttons in other panel, so that it won't collide each other!

If it still not solved, post the sample code!

Hope it helps u...
dodgerfanAuthor Commented:
After separating things out (and taking a break from staring at the code), some of the html tags were not properly closed. It's all working as expected now. Thank.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now