当我启动我的页面时,充当页面过滤器的表格是倾斜的......第二行上的标签似乎会从表格中加载。我继续对此进行故障排除,但我对所发生的事情感到茫然。
以下是截图:
在page_load上:
用户在“位置”下拉列表中选择一个值后,发生post_back:
//对不起,无法发布图片
由于我不确定自己要做什么,我在这个问题所在的地方挣扎:有MasterPage。
这是表格标记:
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="MissingDataCollection.aspx.vb" Inherits="MDC.MissingDataCollection" %>
<%@ Register Assembly="AjaxControlToolkit, Version=4.1.51116.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel ID="Panel1" runat="server">
</asp:Panel>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Table ID="Table1" runat="server" BorderStyle="none" CellPadding="0" CssClass="ReportFilterTable"
CellSpacing="0" Width="90%">
<asp:TableRow ID="TableRow1" runat="server" BorderStyle="none">
<asp:TableCell ID="TableCell1" BorderStyle="none" runat="server" HorizontalAlign="right" colspan="1">
<asp:Label ID="lblSelectPractice" runat="server" Text="Label" style="text-align: right;">Select a Location:</asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell2" BorderStyle="none" runat="server" HorizontalAlign="left" colspan="4">
<asp:DropDownList ID="ddnAvailablePracticeList" runat="server" AutoPostBack="true"
DataSourceID="sqlGetPractices" DataTextField="GroupName"
DataValueField="GroupID">
</asp:DropDownList>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="TableRow2" runat="server" BorderStyle="none">
<asp:TableCell ID="TableCell5" runat="server" BorderStyle="none" height="50px" HorizontalAlign="right">
<asp:Label ID="Label14" runat="server" Text="Label" style="text-align: right;">Select a Customer:</asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell6" BorderStyle="none" runat="server">
<asp:TextBox ID="txtProviderList" Width="260px" Text="Please select a Customer." runat="server" CssClass="txtbox">
</asp:TextBox>
<div id="divDDL" runat="server">
</div>
<asp:Panel ID="PnlCust" runat="server" CssClass="PnlDesign">
<asp:CheckBoxList ID="cblProviderList" BorderStyle="none" runat="server" AppendDataBoundItems="true" onclick="readCheckBoxList();">
</asp:CheckBoxList>
</asp:Panel>
<asp:PopupControlExtender ID="PceSelectCustomer" runat="server" TargetControlID="txtProviderList"
PopupControlID="PnlCust" Position="Bottom">
</asp:PopupControlExtender>
</asp:TableCell><asp:TableCell ID="TableCell7" BorderStyle="none" runat="server" HorizontalAlign="right"><asp:Label ID="lblSortOrder" runat="server" Text="Label" style="text-align: right;"> Sort Order:</asp:Label>
</asp:TableCell>
<asp:TableCell ID="TableCell8" BorderStyle="none" CssClass="label1">
<asp:DropDownList ID="ddnSortOrder" runat="server" AutoPostBack="true">
</asp:DropDownList>
</asp:TableCell>
<asp:TableCell ID="TableCell10" BorderStyle="none" HorizontalAlign="left" ColumnSpan="1">
<asp:Button ID="btnRunReport" visible="true" runat="server" Text="Run Report"/>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<hr />
有什么想法吗?
Thanks.Mike
答案 0 :(得分:0)
问题在于Panel PnlCust有一个定义的CssClass,它正在设置区域的高度......?...到150px。我已经纠正了这一点,似乎已经解决了我的问题。