Solved

Asp.net Panel height not working with percentage (%)

Posted on 2008-10-08
2
2,908 Views
Last Modified: 2012-06-21
I am developing asp.net(2.0) AJAX enabled website. In my page i am having gridview inside panel. My Page height and width are assigned with percentage.
The problem is that the panel height is working only with pixel. I do not want set the height in pixel because while resizing it will be static. How to set panel height in percentage (%).
If the gridview has more no of rows it is breaking my page. panel scrollbar is already set to auto. i want to restrict the height of the panel with in the window. Is working fine with pixel. how to solve this issue with percentage.
Any help would be greatly appreciated.  
0
Comment
Question by:balajime
2 Comments
 
LVL 8

Accepted Solution

by:
rodmjay earned 230 total points
ID: 22674249
this is a strange thing with html in general... try this...

set the html to height: 100%
set the body height: 100%
set the form height: 100%

and any other element between your panel and the form
0
 

Author Closing Comment

by:balajime
ID: 31504464
Thanks a lot jay. This really sucks for me long time. u done it.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
When writing CSS, there are a few simple rules that will make your life easier.    1. Using ‘* {box-sizing:border-box;}’. Using this will wrap all your elements in a nice little compact box-model that will give you the width you want, like so... …
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now