473,748 Members | 2,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.dt d">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:1 00%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</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 2938
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.dt d">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:1 00%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</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.dt d">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitl ed Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:1 00%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentpla ceholder id="ContentPlac eHolder1"
runat="server">
</asp:contentplac eholder>
</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
1103
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: http://msdn.microsoft.com/library/en-us/dnvs05/html/masterpages.asp?frame=false#masterpages_topic11 (Exposing Properties and Methods from a Master Page) here my code:
9
1914
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 class from a Page that uses the MasterPage. How do I do that? public partial class List : System.Web.UI.MasterPage { protected ArrayList m_SortList;
1
1877
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 go about doing so? I know that I can cache specific controls on a page by setting the VaryByControl property of the OutputCache directive. But if the control is
3
2084
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, for example, that the Page_Load on the specific page executes before the Page_Load of its MasterPage. Is this right? But what I really want to understand is VARIABLE SCOPE, etc. between the two. For example: Is there a way for me to write code...
5
1739
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 between them it don't work, if the default masterpage is "onepanel.master" and try to change it in runtime, ContentPanel2 which is exist in the loaded masterpage throw exception.. the same happen if the default is "twopanel.master" and switch it...
3
1214
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 page I want the following to appear for the Title.. SITENAME - some page related title
11
1471
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 the place holder for the main portion of the body of the site my question is, is there a way to test what aspx page will be loaded into the contentplaceholder? basically if it is our home page, that page has a wider definition than all of our...
6
6173
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 Creating Control - Content. Content controsl can only be used in a content page." I know that there's an issue w/ nested masters, but I'm only trying to use one. Interestingly, if I run the site, it builds and displays properly despite this error. Any...
7
13045
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 changed from default.aspx to students.aspx. I tried to create a subroutine in MasterPage.master.vb to do it. The code is as following. But, the default.aspx's content is shown in MasterPage even I clicked the student button.
0
5751
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. Parser Error Message: The file '/MasterPage.master' does not exist. Source Error: Line 1: <%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Services.aspx.cs" Inherits="Services" Title="Untitled...
0
8995
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9561
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9381
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9332
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.