⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 default.ascx

📁 一个ASP.NET下的中文内容管理和社区系统
💻 ASCX
字号:
<%@ Control %>
<%@ Register TagPrefix="community" Namespace="ASPNET.StarterKit.Communities" Assembly="ASPNET.StarterKit.Communities" %>
<%@ import Namespace="ASPNET.StarterKit.Communities" %>
<!-- begin page -->
<table  cellspacing="0" cellpadding="0" width="100%" valign="top" summary="Main layout table containing navigation, menus, contents and web box." border="0" style="position:absolute; top:0px;">
  <tbody>
    <tr>
      <td valign="top"> 
      
<!-- top menu table goes all the way across and includes the corner graphics -->
        <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#333333" summary="Top layout table containing main section navigation.." border="0">
          <tbody>
            <tr>
              <td valign="top" align="left">
                <img height="90" alt="left corner" hspace="0" src='<%=ResolveUrl( "../../Images/Corner_LeftTop.gif")%>' width="90" vspace="0" border="0" /></td>
              <td valign="bottom" align="middle" width="100%" background='<%=ResolveUrl( "../../Images/Border_Top.gif")%>' >
                <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" summary="Section Navigation Menu." border="0">
                  <tbody>
                    <tr width="70%">

<!-- user login -->
                      <td style="background-repeat: repeat-x" bgcolor="#000000" background='<%=ResolveUrl( "../../Images/Border_Top.gif")%>'>
                        <community:UserLogin CssClass="UserLogin" Runat="Server"/>
                        <br />
                      </td>
                      <td valign="center" align="middle" style="background-repeat: repeat-x" bgcolor="#000000" background='<%=ResolveUrl( "../../Images/Border_Top.gif")%>'>
                        <table cellspacing="0" cellpadding="0" border="0">
                          <tbody>
                            <tr>

<!-- logo -->
                              <td>
                                <table width="319" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td height="90" style="background-repeat: repeat-x" bgcolor="#000000" background='<%=ResolveUrl( "../../Images/Logo.gif")%>' align="center">                        
                                      <community:Logo Runat="Server"/>
                                    </td>
                                  </tr>
                                </table> 
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </td>

<!-- search -->
                      <td style="background-repeat: repeat-x" bgcolor="#000000" background='<%=ResolveUrl( "../../Images/Border_Top.gif")%>' align="right" class="Search">
                        Search: <asp:TextBox id="txtSearch" height="15" font-size="7" width="110" Runat="Server"/><asp:LinkButton id="lnkSearch" Text=" Go" Runat="Server"/>
                      </td>
                   </tr>
                 </tbody>
               </table>
             </td>
             <td valign="top" align="right">
               <img height="90" alt="right corner" hspace="0" src='<%=ResolveUrl( "../../Images/Corner_RightTop.gif")%>' width="90" vspace="0" border="0" /></td>
           </tr>
         </tbody>
       </table>
     </td>
   </tr>
   <tr>
   <td valign="top">

<!-- content table -->
         <table cellspacing="0" cellpadding="0" width="100%" summary="Page Contents." border="0">

            <tr>
                   
<!-- start left border cell -->
               <td width="1%" background='<%=ResolveUrl( "../../Images/Border_Left.gif")%>' rowspan="3">
                 <img height="1" alt="" src='<%=ResolveUrl( "../../Images/Space.gif")%>' width="20" border="0" /> 
               </td>
             
<!-- section menu -->
               
               <td bgcolor="#996633" colspan="2" class="SectionMenu" align="center" height="30">
                 <community:SectionMenu CssClass="SectionMenu" runat="Server"/>
               </td>

<!-- start right border cell -->
               <td width="1%" background='<%=ResolveUrl( "../../Images/Border_Right.gif")%>' rowspan="3">
                 <img height="1" alt="" src='<%=ResolveUrl( "../../Images/space.gif")%>' width="20" border="0" /> 
               </td>
                
<!-- end right border cell, but it spans the next row(s), too, and if you add more rows then just change the rowspan value -->
             </tr>
             <tr>
           
<!-- left: Ad1, webboxes, webservices -->
               <td valign="center" align="middle" width="15%" bgcolor="#ffffff">
                 <table height="100%" cellspacing="0" bordercolordark="#cecec1" cellpadding="3" width="100%" summary="Web box table contains web services information." bordercolorlight="#ffffcc" border="1">
                     <tr>
                       <td valign="middle" width="99%" align="center" colspan="2">
                         <asp:AdRotator AdvertisementFile="~/Advertisements/BoxAds.xml" Width="125" height="125" Runat="Server"/>                   
                         </td>
                     </tr>
                     <tr>
                       <td valign="middle"  align="center" colspan="2" >
                         <br>
                         <community:WebBoxList id="WebBoxes" RepeatDirection="Vertical" Runat="Server"/>
                         <br> 
                         <community:WebServiceBoxList id="WebServiceBoxes" RepeatDirection="Horizontal" Runat="Server"/> 
                         <br/>
                         <br/>
                         <img height="6" alt="" src='<%=ResolveUrl( "../../Images/Space.gif")%>' width="165" border="0" /> 
                       </td>
                     </tr>
                </table>
              </td>
                   
<!-- right: content, Ad2  -->
              <td width="68%" background="Knotted_BackGround.gif" bgcolor="#996633" valign="top">
                <table bordercolor="#996633" cellspacing="1" cellpadding="3" width="100%" bgcolor="#ffffff" summary="Content table" border="4">
                    <tr>
                      <td valign="top" align="left" valign="top" height="500">
                        <table cellspacing="0" bordercolordark="#cecec1" cellpadding="2" width="100%" bordercolorlight="#ffffcc" border="1">
                          <tbody>
                            <tr>
                              <td align="middle" bgcolor="#cccc99" height="30" class="TopicMenu">
                                <community:TopicMenu Runat="Server" />
                              </td>
                            </tr>
                        </table>
                        <br/>
                                               
<!-- Ad2 -->
                        <div align="center"><asp:AdRotator AdvertisementFile="~/Advertisements/BannerAds.xml" Width="468" height="60" Runat="Server"/></div> 
                        <br>
<!-- Crumb -->
                        <div align="right" class="BreadCrumb"><community:BreadCrumb Runat="Server"/></div><br><br>
                        <div align="center"><community:VotingControl Runat="Server"/></div>

<!-- Content -->
                        <asp:PlaceHolder id="Content" Runat="Server" />
                        <p> </p>
                      </td>
                    </tr>
                </table>
              </td>
            </tr>                        

<!-- bottom: Section menu -->
            <tr>
              <td bgcolor="#cccc99" colspan="2">
                <table cellspacing="0" cellpadding="0" width="100%" summary="Navigation table reiterates section links." border="0">
                  <tbody>
                    <tr>
                      <td valign="top">
                        <br />
                        <center><community:SectionMenu skinfilename="Sections_SectionMenuBottom.ascx" CssClass="SectionMenu2" Runat="Server" /></center>
                      </td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
            <tr>
              <td colspan="4">
                <table cellspacing="0" cellpadding="0" width="100%" summary="Graphic framework and copyright information" border="0">
                  <tbody>
                    <tr>
                      <td valign="top" align="left">
                        <img height="45" alt="left bottom corner" hspace="0" src='<%=ResolveUrl( "../../Images/Corner_LeftBottom.gif")%>' width="50" vspace="0" border="0" /></td>                                
                      <td valign="top" align="middle" width="100%" background='<%=ResolveUrl( "../../Images/Border_Bottom.gif")%>'>                                                    
                        <div align="center" class="Content_BodyText"><asp:Placeholder id="Footer" Runat="Server"/></div></td>
                      <td valign="top" align="left">
                        <img height="45" alt="right bottom corner" hspace="0" src='<%=ResolveUrl( "../../Images/Corner_RightBottom.gif")%>' width="50" vspace="0" border="0" /></td>
                    </tr>
                  </tbody>
                </table>
              </td>
            </tr>
          </tbody>
        </table>
      </td>
    </tr>
  </tbody>
</table>
<!-- end page -->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -