c# - Page Displays Different In Debug Than In Design View -


if display page in design view looks want to, when debug page not display should. grid extend past bottom of page. need make "design" view of page "debug" view of page?

here site.master syntax works great on 3 pages (i have on 200 in project).

<%@ master language="c#" autoeventwireup="true" codebehind="site.master.cs" %>  <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head id="head1" runat="server">     <title>test</title>     <link href="~/styles/site.css" rel="stylesheet" type="text/css" />     <link href='http://fonts.googleapis.com/css?family=open+sans' rel='stylesheet' type='text/css' />     <link href='http://fonts.googleapis.com/css?family=roboto+condensed' rel='stylesheet' type='text/css' />     <link href='http://fonts.googleapis.com/css?family=oswald:400,300' rel='stylesheet' type='text/css' /> </head> <body>     <form id="form1" runat="server">     <asp:scriptmanager id="sptscriptmanager" runat="server">     </asp:scriptmanager>     <div class="page">         <div class="header">             <div>                 <table class="color3" cellspacing="0" cellpadding="0" width="100%">                 <!--table showing menu information-->                 </table>                 <div class="white" style="height: 14px;"></div>                 <div class="main" id="divmain">                     <asp:contentplaceholder id="maincontent" runat="server"></asp:contentplaceholder>                 </div>                 <div class="color1" style="height: 40px; margin-top:50px;">                 </div>             </div>         </div>     </div>     <div class="color2" style="height: 300px;">         <div style="text-align: center;">             <br />             <asp:label runat="server" id="lblhaeia" cssclass="custombold"></asp:label>         </div>     </div>     </form> </body> </html> 

and on page how calling it. in design view looks should, if run page in debug grid spans down past bottom of </asp:content> tag

<asp:content id="content2" contentplaceholderid="maincontent" runat="server">     <asp:datagrid runat="server" id="asd" autogeneratecolumns="false"         gridlines="both" showfooter="true" visible="false" onitemdatabound="asd_onitemdatabound">         <itemstyle cssclass="row" /><footerstyle cssclass="datagridfooters" /><headerstyle cssclass="datagridheaders" />         <columns>             <asp:boundcolumn datafield="123" headertext="123" itemstyle-width="137px">             </asp:boundcolumn>             <asp:boundcolumn datafield="erf" headertext="erf"></asp:boundcolumn>             <asp:boundcolumn datafield="mmm" headertext="mmm"></asp:boundcolumn>             <asp:boundcolumn datafield="acxz" headertext="axcz" dataformatstring="{0:n}"                 headerstyle-horizontalalign="center" itemstyle-horizontalalign="center"></asp:boundcolumn>             <asp:boundcolumn datafield="qaz" headertext="qaz"                 dataformatstring="{0:n}" headerstyle-horizontalalign="center" itemstyle-horizontalalign="center">             </asp:boundcolumn>             <asp:boundcolumn datafield="b" headertext="b" headerstyle-horizontalalign="center"                 itemstyle-horizontalalign="center"></asp:boundcolumn>             <asp:boundcolumn datafield="tt" headertext="tt" headerstyle-horizontalalign="center"                 itemstyle-horizontalalign="center"></asp:boundcolumn>             <asp:boundcolumn datafield="nnne" headertext="nnne" headerstyle-horizontalalign="center"                 itemstyle-horizontalalign="center"></asp:boundcolumn>             <asp:boundcolumn datafield="flam" headertext="flam"                 headerstyle-horizontalalign="center" itemstyle-horizontalalign="center"></asp:boundcolumn>         </columns>     </asp:datagrid>   </asp:content> 

and css may or may not skewing stuff

.color1 {     background-color: #689e1c;      background-repeat: repeat-x;     height: 55px; } .color2 {     background-color: #333881;     padding: 0px 0px 0px 0px;     height: 20px;      display: block; } .color3 {     background-color: #001199;      padding: 0px 0px 0px 0px; } .custombold {     font-family: 'open sans', sans-serif;     font-size: 12px;     font-style: normal;     font-weight: bold;     color: white; } .white {     background-color: #ffffff;     padding: 0px 0px 0px 0px;     height: 40px; } .main {     padding: 0px 12px;     margin: 12px 8px 8px 8px;     min-height: 200px;     max-height: auto;  } .body    {     background: #b6b7bc;     font-size: .80em;     font-family: "helvetica neue", "lucida grande", "segoe ui", arial, helvetica, verdana, sans-serif;     margin: 0px;     padding: 0px;     color: #696969; } 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -