473,386 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

AJAX Toolkit (Tab Panel Height)

Anyone know how to force the Tab Panel to the remaining height of the
page?

"<cc1:TabPanel ...>" has a height option but only accepts pixels.

My page goes
<body><form ...><div><cc1:TabContainer ...><cc1:TabPanel ...>

I tried playing with the div / TabContainer / TabPanel (height="100%"
and style="height:100%"), options but none get the TabPanel to take up
the remaining space on the page. Strangly, TabPanel does accept
"width=100%"...
If top isn't possible, would someone know how to get the height of the
display area of the webpage currently open (from a <script
runat="server"block). Either VB.NET or C# is fine.

Thanks
NB
Nov 30 '07 #1
2 10036
html 4.0+ does not support a default page height (only width). so for
100% to work it must be inside an object with a absolute size.

this means to set the tab to the viewport size you must use javascript
and calc the size after render.

any good javascript book should cover this, and if you are going to do
web development you should learn the dom.

- bruce (sqlwork.com)

NvrBst wrote:
Anyone know how to force the Tab Panel to the remaining height of the
page?

"<cc1:TabPanel ...>" has a height option but only accepts pixels.

My page goes
<body><form ...><div><cc1:TabContainer ...><cc1:TabPanel ...>

I tried playing with the div / TabContainer / TabPanel (height="100%"
and style="height:100%"), options but none get the TabPanel to take up
the remaining space on the page. Strangly, TabPanel does accept
"width=100%"...
If top isn't possible, would someone know how to get the height of the
display area of the webpage currently open (from a <script
runat="server"block). Either VB.NET or C# is fine.

Thanks
NB
Nov 30 '07 #2
On Nov 29, 6:12 pm, bruce barker <nos...@nospam.comwrote:
html 4.0+ does not support a default page height (only width). so for
100% to work it must be inside an object with a absolute size.

this means to set the tab to the viewport size you must use javascript
and calc the size after render.

any good javascript book should cover this, and if you are going to do
web development you should learn the dom.

- bruce (sqlwork.com)

NvrBst wrote:
Anyone know how to force the Tab Panel to the remaining height of the
page?
"<cc1:TabPanel ...>" has a height option but only accepts pixels.
My page goes
<body><form ...><div><cc1:TabContainer ...><cc1:TabPanel ...>
I tried playing with the div / TabContainer / TabPanel (height="100%"
and style="height:100%"), options but none get the TabPanel to take up
the remaining space on the page. Strangly, TabPanel does accept
"width=100%"...
If top isn't possible, would someone know how to get the height of the
display area of the webpage currently open (from a <script
runat="server"block). Either VB.NET or C# is fine.
Thanks
NB- Hide quoted text -

- Show quoted text -
Thanks for the reply. Yeah, after posting I realized to do it with
the 2nd method I'd have to use client side scripts to find render
height with an onResize type event.

I'm a little new to ASP.NET so not 100% sure what you mean by must be
inside an object with an absolute size (Objects that take a height
option (with pixels) I think you mean). But I'll look into it and ask
if I run into a problem.

Thanks Again

NB
Nov 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: tirath | last post by:
hi, I am using Microsoft AJAX.Net control toolkit. I am using HoverMenuExtender control. When I hover over an Image control I open a Panel which contains details. I want to provide a close...
3
by: =?Utf-8?B?UnlhbiBTbWl0aA==?= | last post by:
I have a form that has a ModalPopupExtender on it. I have un updatepanel on a panel control that is displayed when an Button (outside of the update panel) is clicked. What I am trying to do is...
4
by: pablorp80 | last post by:
Hello, Here is what I need: I need the focus and the cursor set to a textbox named txtGT, every time no matter if it is the first page load or whether it is a postback. Here is the problem: I...
5
by: simon | last post by:
hello, I have a server set up on my local (home) network and can not get an ajax application to run on the box. it works fine on our developement server and also works fine locally. I...
1
by: mistryman06 | last post by:
Hi, I'm new to the ASP.NET Ajax. Im struck with an issue. Im having a tabcontainer with 3 tabs. Each tab has a user control (all 3 tab has the same user control) & the user control has a Button &...
11
by: =?Utf-8?B?R2VyaGFyZA==?= | last post by:
I have run into a situation that if a page/tab that uses the Ajax toolkit (using .net version 3.5) is closed before the Ajax enable controls complete loading, then IE locks up. Does it in both IE7...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
0
by: sanrek | last post by:
Hi Folks, Slider control is driving me nuts, below is the code from my test page's page load event, nothing great about code, I have a place holder control into which I am adding a table which...
1
by: nehalsmistry | last post by:
Hello.. I am using visual studio 2005. So there is framework 2.0 Now I m using ajax toolkit for 2.0 and installed it. But there is no option like Asp.net ajax enable website. But there is 1...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.