Rambler's Top100
Главная
Новости
Статьи
Форумы
Книги
Коды
Сообщество
Блоги
О нас
 

Логин

Email:
  Пароль:

Войти
Зарегистрироваться
Забыл пароль

Поиск

 Искать :
 
Вперед

Сообщение

mumps


Книжник

Зарегистрирован:
15 November 2007
Сообщения: 165
Примеры кода: 0
 

RE[2]: Master-pages - размер placeholder'а. Подскажите

29 January 2008 17:15  


Во-первых, покажите код. Во-вторых, мастерпейдж тут помоему не при чем.


Да элементарно. Плейсхолдеры недопустимо велики уже в дизайне.

Мастер (ниже, под ним, контентная страница). В аттаче тоже мастер, но аттачи у меня проходят плохо:
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MainTable.master.cs" Inherits="MainTable" %>

<!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 runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table style="height: 7%" width="900">
<tr height="35px">
<td style="border-top: black 2px solid; border-left: black 2px solid; width: 10%;
background-color: #ffffff; text-align: center; height: 21px; vertical-align:top;">
<!--#dcdcdc-->
<asp:ContentPlaceHolder ID="PlcHolderRubric" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="border-right: black 2px solid; border-top: black 2px solid; border-left: black 2px solid;
width: 10%; background-color: #ffffff; text-align: center; height: 21px; vertical-align:top;">
<asp:ContentPlaceHolder ID="PlcHolderFind" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="border-right: black 2px solid; border-top: black 2px solid; border-left: black 2px solid;
width: 10%; background-color: #ffffff; text-align: center; height: 21px; vertical-align:top;">
<asp:ContentPlaceHolder ID="PlcHolderExport" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="border-right: black 2px solid; border-top: black 2px solid; border-left: black 2px solid;
width: 9%; background-color: #ffffff; text-align: center; height: 21px; vertical-align:top;">
<asp:ContentPlaceHolder ID="PlcHolderReports" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="border-right: black 2px solid; border-top: black 2px solid; border-left: black 2px solid;
width: 5%; border-bottom: black 2px solid; background-color: #ffffff; text-align: center; height: 21px; vertical-align:top;">
</td>
<!--
<td style="width: 3%; border-bottom: black 2px solid;">
</td>
-->
</tr>
<tr>
<td colspan="6" style="border-right: black 2px solid; border-left: black 2px solid;
width: 45%; border-bottom: black 2px solid; height: 479%">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

Контент (для примера).
<%@ Page Language="C#" MasterPageFile="~/MainTable.master" AutoEventWireup="true" CodeFile="MainRubric.aspx.cs" Inherits="MainRubric" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PlcHolderRubric" Runat="Server">
<asp:Label ID="LblRubr" runat="server" Text="Рубрикатор" BackColor="White" Height="21px" Width="196px"></asp:Label>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlcHolderFind" Runat="Server">
<asp:HyperLink ID="HLinkQuery" runat="server" NavigateUrl="~/MainQuery.aspx" BackColor="#E0E0E0" Width="190px">Запросы</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlcHolderExport" Runat="Server">
<asp:HyperLink ID="HLinkExp" runat="server" NavigateUrl="~/MainExport.aspx" BackColor="#E0E0E0" Width="195px">Экспорт</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="PlcHolderReports" Runat="Server">
<asp:HyperLink ID="HLinkRepts" runat="server" NavigateUrl="~/MainReports.aspx" BackColor="#E0E0E0" Width="162px">Отчёты</asp:HyperLink>
</asp:Content>



Отец, конечно, сам может. Но у быка лучше получается.

Прикрепленный файл: MainTable.master
Наверх
  



Общие вопросы программирования на ASP.NET

 Master-pages - размер placeholder'а. Подскажитеmumps  29 January 2008 15:40
 RE: Master-pages - размер placeholder'а. Подскажитеvoodoos  29 January 2008 16:48
 RE[2]: Master-pages - размер placeholder'а. Подскажитеmumps  29 January 2008 17:15
 RE[3]: Master-pages - размер placeholder'а. Подскажитеvoodoos  29 January 2008 18:06
 RE[4]: Master-pages - размер placeholder'а. Подскажитеmumps  29 January 2008 18:20
 RE[5]: Master-pages - размер placeholder'а. Подскажитеvoodoos  29 January 2008 20:23
 RE[6]: Master-pages - размер placeholder'а. Подскажитеmumps  30 January 2008 11:35
 RE[6]: Master-pages - размер placeholder'а. Подскажитеmumps  30 January 2008 11:22
 
Наш Киев

Apartments for Rent

Rambler's Top100
Рейтинг@Mail.ru
Идея: Dimon aka Manowar Программирование: Dimon aka Manowar Дизайн: Dan Lebedev
Хостинг от компании Parking.ru
Карта сайта