Внезапно моя страница ASP имеет прокрутку по оси Y. Как это исправить?
я пытаюсь что-то сделать с переполнением, а потом вдруг заметил, что получаю панель переполнения на моей оси y на странице asp как это исправить ? вот мой код
Что я уже пробовал:
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/teacher.Master" CodeBehind="twwc.aspx.vb" Inherits="St.Peter_Academy.twwc" %> <asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"> <link href="CSS/other.css" rel="stylesheet" type="text/css" /> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server"> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="body" runat="server"> <br /> <br /><br /><br /><br /><br /> <!--eto yung teachers info --> <div style="border-bottom: 1px solid black; margin-left: 50%; margin-right: 10%;" > <strong> <asp:Label ID="Label6" runat="server" Text="Teacher ID:"></asp:Label> </strong> <asp:Label ID="tid" runat="server" Text="Label" style="border-right: 2px solid black;"></asp:Label> <strong> <asp:Label ID="Label7" runat="server" Text="Teachername:"></asp:Label> </strong> <asp:Label ID="tn" runat="server" Text="Label"></asp:Label> <strong> <asp:Label ID="Label8" runat="server" Text="Adviseree Class:"></asp:Label> </strong> <asp:Label ID="ta" runat="server" Text="Label"></asp:Label> </div> <!--end ng yung teachers info --> <!--yung margin ng left and right --> <div style="margin-left: 5%; width: 113%;" > <!--options--> <asp:Label ID="Label1" runat="server" Text="Written Work:"></asp:Label> <asp:Label ID="Label2" runat="server" Text="Grade:"></asp:Label> <asp:DropDownList ID="grade" runat="server" AutoPostBack="True"> </asp:DropDownList> <asp:Label ID="Label3" runat="server" Text="Section:"></asp:Label> <asp:DropDownList ID="Section" runat="server" AutoPostBack="True"> </asp:DropDownList> <asp:Label ID="Label4" runat="server" Text="Subject:"></asp:Label> <asp:DropDownList ID="Subject" runat="server" AutoPostBack="True"> </asp:DropDownList> <asp:Label ID="Label5" runat="server" Text="Quarter:"></asp:Label> <asp:DropDownList ID="quarter" runat="server" AutoPostBack="True"> <asp:ListItem>Quarter1</asp:ListItem> <asp:ListItem>Quarter2</asp:ListItem> <asp:ListItem>Quarter3</asp:ListItem> <asp:ListItem>Quarter4</asp:ListItem> </asp:DropDownList> <asp:Button ID="Button1" runat="server" Text="Button" /> <br /><br /> <!--end ng options--> <!--overflow --> <asp:Panel ID="Panel1" runat="server"> <div style="width:80%; height:200px; overflow: auto; border: solid black; border-radius: 5px; "> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display." BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4"> <Columns> <asp:CommandField ShowSelectButton="True" /> <asp:BoundField DataField="studentid" HeaderText="Student ID" SortExpression="studentid" /> <asp:BoundField DataField="studname" HeaderText="Studentname" SortExpression="studname" /> <asp:BoundField DataField="subjectid" HeaderText="Subject ID" SortExpression="subjectid" /> <asp:BoundField DataField="grade" HeaderText="Grade" SortExpression="grade" /> <asp:BoundField DataField="section" HeaderText="Section" SortExpression="section" /> <asp:BoundField DataField="quarter" HeaderText="Quarter" SortExpression="quarter" /> <asp:BoundField DataField="totalnumberofww" HeaderText="Total number of Written Work" SortExpression="totalnumberofww" /> <asp:BoundField DataField="totalscoreofww" HeaderText="Total Raw Score of Written Work" SortExpression="totalscoreofww" /> <asp:BoundField DataField="maxscoreofww" HeaderText="Max Score of Written Work" SortExpression="maxscoreofww" /> <asp:BoundField DataField="percentageofww" HeaderText="Percentage Score" SortExpression="percentageofww" /> <asp:BoundField DataField="weightedscoreww" HeaderText="Weighted Score" SortExpression="weightedscoreww" /> <asp:BoundField DataField="wwrs1" HeaderText="wwrs1" SortExpression="wwrs1" /> <asp:BoundField DataField="wwms1" HeaderText="wwms1" SortExpression="wwms1" /> <asp:BoundField DataField="wwrs2" HeaderText="wwrs2" SortExpression="wwrs2" /> <asp:BoundField DataField="wwms2" HeaderText="wwms2" SortExpression="wwms2" /> <asp:BoundField DataField="wwrs3" HeaderText="wwrs3" SortExpression="wwrs3" /> <asp:BoundField DataField="wwms3" HeaderText="wwms3" SortExpression="wwms3" /> <asp:BoundField DataField="wwrs4" HeaderText="wwrs4" SortExpression="wwrs4" /> <asp:BoundField DataField="wwms4" HeaderText="wwms4" SortExpression="wwms4" /> <asp:BoundField DataField="wwrs5" HeaderText="wwrs5" SortExpression="wwrs5" /> <asp:BoundField DataField="wwms5" HeaderText="wwms5" SortExpression="wwms5" /> <asp:BoundField DataField="wwrs6" HeaderText="wwrs6" SortExpression="wwrs6" /> <asp:BoundField DataField="wwms6" HeaderText="wwms6" SortExpression="wwms6" /> <asp:BoundField DataField="wwrs7" HeaderText="wwrs7" SortExpression="wwrs7" /> <asp:BoundField DataField="wwms7" HeaderText="wwms7" SortExpression="wwms7" /> <asp:BoundField DataField="wwrs8" HeaderText="wwrs8" SortExpression="wwrs8" /> <asp:BoundField DataField="wwms8" HeaderText="wwms8" SortExpression="wwms8" /> <asp:BoundField DataField="wwrs9" HeaderText="wwrs9" SortExpression="wwrs9" /> <asp:BoundField DataField="wwms9" HeaderText="wwms9" SortExpression="wwms9" /> <asp:BoundField DataField="wwrs10" HeaderText="wwrs10" SortExpression="wwrs10" /> <asp:BoundField DataField="wwms10" HeaderText="wwms10" SortExpression="wwms10" /> </Columns> <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" /> <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" /> <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" /> <RowStyle BackColor="White" ForeColor="#330099" /> <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" /> <SortedAscendingCellStyle BackColor="#FEFCEB" /> <SortedAscendingHeaderStyle BackColor="#AF0101" /> <SortedDescendingCellStyle BackColor="#F6F0C0" /> <SortedDescendingHeaderStyle BackColor="#7E0000" /> </asp:GridView> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:StConnectionString1 %>" ProviderName="<%$ ConnectionStrings:StConnectionString1.ProviderName %>" SelectCommand="SELECT [studentid], [studname], [subjectid], [grade], [section], [quarter], [totalnumberofww], [totalscoreofww], [maxscoreofww], [percentageofww], [weightedscoreww], [wwrs1], [wwms1], [wwrs2], [wwms2], [wwrs3], [wwms3], [wwrs4], [wwms4], [wwrs5], [wwms5], [wwrs6], [wwms6], [wwrs7], [wwms7], [wwrs8], [wwms8], [wwrs9], [wwms9], [wwrs10], [wwms10] FROM [tblww]"> </asp:SqlDataSource> <br /> </div> </asp:Panel> <!--end overflow --> </div> <!--end ng position --> </asp:Content>