Solved

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

Posted on 2008-10-08
2
2,965 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Moving code from one TFS branch to another 3 25
jquery datatables, asp.net MVC 9 41
Box Locations 6 16
Mouse event to control image and transparency. 4 22
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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

803 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