• 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.
0
dodgerfan
Asked:
dodgerfan
2 Solutions
 
informaniacCommented:
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.
0
 
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.
0
 
Roopesh ReddyCommented:
Hi,

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...
0
 
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.
0

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