Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wizard page-scrolling

Status
Not open for further replies.

alphajava

Programmer
Mar 30, 2005
17
US
Hi:
My web application is in the form of wizard. So, I made some 3 panels, and inside each I put the controls for that page. I then set the current panel property to visible, while all others to non-visible. This works, but since these panels are stacked vertically, if I make the 3rd one visible, and 1st+2nd non-visible, then on the browser I have to scroll down to get to it, and in place of the first two panels there is white blank space. Is there a way that I can make it show only that panel and without any scrolling actions, and no blank spaces?

Thanks in advance.
 
Are you sure? My experience with panels is that if you set it to Visible=false then none of it's inner content will be rendered into the html output, and not leave any space. Do you possibly have a <BR> or <P> tag between the divs?
 

My web page is using asp.net in c#, and I am using the panels from the toolbox. I do not have divs but I have <p>'s.
 

I found out the cause of my problem:
When I dragged the panel control from toolbox to the web form, a style attribute was added to the panel :
style="Z-INDEX: 106; LEFT: 9px; POSITION: absolute; TOP: 7px"
Once I removed this style statement, it worked fine.
I hope nobody else would waste several hours of their time on silly issue like this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top