473,320 Members | 1,961 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,320 software developers and data experts.

Masterpage problem please help...

Hello All.

I am designing the master page for my site.

I have used a table and ther are three rows in a table.
Table lies in the

1. Header
2.ContentHolder
3.Footer

The footer should be always at the end of the browser.

But I have a problem my footer is being shown at the middle of the
page.

It adjusts itself according to the content holder height but not the
browser height.

How can I always show it to the bottom of a browser.

I have already spent a lot of time.

Here is a code for the master page.

<%@ Master Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>

Please reply me asap. I need it.

Vinit

Apr 30 '07 #1
2 2925
you need to write client script that resizes the table to fill the
browser window.

to simplify you can make the table height 100% and place it in a div.
then in client script ties to browser onload and resize, set the div
height to the browser size.

-- bruce (sqlwork.com)
vi*************@yahoo.co.in wrote:
Hello All.

I am designing the master page for my site.

I have used a table and ther are three rows in a table.
Table lies in the

1. Header
2.ContentHolder
3.Footer

The footer should be always at the end of the browser.

But I have a problem my footer is being shown at the middle of the
page.

It adjusts itself according to the content holder height but not the
browser height.

How can I always show it to the bottom of a browser.

I have already spent a lot of time.

Here is a code for the master page.

<%@ Master Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>

Please reply me asap. I need it.

Vinit
Apr 30 '07 #2
Thanks for your answer.

It was really helpful.

But I have now another problem.

The cells and rows used in the page in contentholder also resize even
I have assigned a fixed size to them

How to overcome that.

Vinit

On Apr 30, 7:32 pm, bruce barker <nos...@nospam.comwrote:
you need to write client script that resizes the table to fill the
browser window.

to simplify you can make the table height 100% and place it in a div.
then in client script ties to browser onload and resize, set the div
height to the browser size.

-- bruce (sqlwork.com)

vinit_mahaja...@yahoo.co.in wrote:
Hello All.
I am designing the master page for my site.
I have used a table and ther are three rows in a table.
Table lies in the
1. Header
2.ContentHolder
3.Footer
The footer should be always at the end of the browser.
But I have a problem my footer is being shown at the middle of the
page.
It adjusts itself according to the content holder height but not the
browser height.
How can I always show it to the bottom of a browser.
I have already spent a lot of time.
Here is a code for the master page.
<%@ Master Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>
Please reply me asap. I need it.
Vinit- Hide quoted text -

- Show quoted text -
May 10 '07 #3

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

Similar topics

0
by: Tony | last post by:
Hi, I'm trying to access properties from a masterpage. With no success. Can somebody help me please? I used the example at:...
9
by: User | last post by:
OK, I asked in a reply, but I've wasted far too long so I'm going to put a new post out there in hopes that it will be more visible. I have a MasterPage. I want to call a method declared in that...
1
by: rh | last post by:
Hi, My MasterPage contains a user control used for navigation. I have some .aspx pages that use this MasterPage and I would like to cache only the user control used for navigation. How do I...
3
by: Alex Maghen | last post by:
Hi. I'm a little confused about the code that resides in the code-behind of a MasterPage and the code that resides in the code-behind of the actual pages that USE that MasterPage. I'm noticing,...
5
by: Islamegy® | last post by:
In my project i have two master page which i change dynamic in runtime.. The first one with 1 ContentPanel "onepanel.master", the second with 2 contentPanel"twopanel.master".. but when i switch...
3
by: musosdev | last post by:
Hi guys I'm using a MasterPage for my website rebuild (vs2005, .net2, c#). I want to be able to control the Title element, both on the MasterPage and the Content pages. For example, on each...
11
by: simon | last post by:
Hello, I'm helping write a .net app, we are using VS2005 and asp/vb.net for code we are using the "masterPage.master" technique, within the masterpage we have an asp:contentplaceholder that is...
6
by: =?Utf-8?B?QmVuIFIu?= | last post by:
Hi, WHen I specify my master page in the page's @Page directive, no problems. However, when I put it ias an attribute in Web.config's page element, the designer fails. It just says "Error...
7
by: Bon | last post by:
Dear all I create a master page with image buttons on the left-hand side for navigation. When a user clicks the student button, the content (i.e. ContentPlaceholder) in masterpage will be...
0
by: mohammadkashif | last post by:
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. ...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.