Jul 01, 2011, 5:26 AM
How to set auto height for a panel?
Hi,
How to set auto height for a panel,If i remove Height=1200 and set AutoHeight="true" for panel ( ID="pnlLayout" ), both(ID="LeftMenuPanel",ID="DefaultContent") are not displayed .
Please help me
Thanks
Srinivas
How to set auto height for a panel,If i remove Height=1200 and set AutoHeight="true" for panel ( ID="pnlLayout" ), both(ID="LeftMenuPanel",ID="DefaultContent") are not displayed .
Please help me
Thanks
Srinivas
C#" AutoEventWireup="true" CodeFile="DefaultMaster.master.cs"
Inherits="Shared_DefaultMaster1" %>
<%@ Register Src="~/Shared/Controls/HeaderMenu.ascx" TagName="TopMenu" TagPrefix="tm1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Shared/Controls/LeftMenu.ascx" TagPrefix="LM" TagName="LeftMenu" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head" runat="server">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
<meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />
<link rel="Save icon" href="../App_Themes/Default/Images/logo.PNG" type="image/x-icon" />
</head>
<body>
<form id="mainForm" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<table width="99.5%" border="0" cellspacing="0" cellpadding="0" class="mainwrapper"
style="min-width: 750px;">
<tr>
<td style="padding-left: 1px">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="topbarbackground">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="topbarlogo" style="width: 33%">
</td>
<td align="left" style="width: 65%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 33%">
</td>
</tr>
<tr>
<td align="right" style="width: 33%; font-family: Agency FB; font-size: 30px; color: #1B4883;
padding-bottom: 3px">
Title
</td>
</tr>
<tr>
<td style="width: 34%; font-family: Arial;" align="right">
<em style="font-size: 13px; color: #0874BC;">Signed in as
<asp:LoginName ID="lgnUsn" runat="server" Font-Size="10pt" />
</em><em style="font-size: 10px; font-weight: bold;">|</em>
<asp:LinkButton ID="lnkBtnHome" runat="server" Font-Size="10pt" Font-Italic="false"
OnClick="btnHome_Click" CssClass="LogoTextColor">Home</asp:LinkButton>
<em style="font-size: 10px; font-weight: bold;">|</em>
<asp:LinkButton ID="lnkMyAccount" runat="server" Font-Size="10pt" Font-Italic="false"
CssClass="LogoTextColor" OnClick="btnLink_Click">My Account</asp:LinkButton>
<em style="font-size: 10px; font-weight: bold;">|</em>
<asp:LinkButton ID="lnkBtnHlp" runat="server" Font-Size="10pt" Font-Italic="false"
CssClass="LogoTextColor">Support</asp:LinkButton>
<em style="font-size: 10px; font-weight: bold;">|</em>
<asp:LoginStatus ID="LoginStatus1" runat="server" Font-Size="10pt" OnLoggedOut="OnLogOut"
CssClass="LogoTextColor" Font-Italic="false" />
</td>
</tr>
</table>
</td>
<td style="width: 2%">
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="TopMenu_Content">
<tm1:TopMenu ID="topMenu" runat="server" />
</td>
</tr>
<tr>
<td>
<div id="content-place">
<ext:Panel runat="server" ID="pnlLayout" AutoWidth="true" Border="false" Height="1200">
<Content>
<ext:BorderLayout ID="bLayout" runat="server">
<West Collapsible="True" MinWidth="175px">
<ext:Panel ID="WestPanel" runat="server" Title=" Menu " Width="250px">
<Content>
<LM:LeftMenu ID="LeftMenuPanel" runat="server" />
</Content>
</ext:Panel>
</West>
<Center>
<ext:Panel ID="pnlMain" runat="server" Width="1400px">
<Content>
<asp:ContentPlaceHolder ID="DefaultContent" runat="server" />
</Content>
</ext:Panel>
</Center>
</ext:BorderLayout>
</Content>
</ext:Panel>
</div>
</td>
</tr>
<tr>
<td align="left">
Copyright © 2011
</td>
</tr>
</table>
</form>
</body>
</html>
Last edited by Daniil; Jul 01, 2011 at 3:53 PM.
Reason: Please use [CODE] tags