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

📄 default.aspx

📁 一个简单的聊天代码
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  EnableEventValidation="true"   CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Src="WebUserControlSpClass.ascx" TagName="WebUserControlSpClass" TagPrefix="uc2" %>

<%@ Register Src="WebUserControLogin.ascx" TagName="WebUserControLogin" TagPrefix="uc1" %>


<!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 >
    <title>小胡商情网</title>
     <link href="images/StyleSheet2.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
a {
	text-decoration: none;
}
-->
    </style>
</head>
<body> <form id="form1" runat="server"><!--#include file="Head.htm" --><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><font 
color="#ff0000"><b>本频道由《海南日报》报业集团海南新闻网主办</b>。</font></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

     <table width="760" align="center"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="23%"><table width="200"border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td height="32" style="width: 200px"><img src="images/images2/commerce_r7_c1.jpg" width="199" height="32" /></td>
            </tr>
            <tr>
              <td height="9" style="width: 200px"><img src="images/images2/commerce_r10_c1.jpg" width="199" height="9" /></td>
            </tr>
            <tr>
              <td height="168" align="center" background="images/images1/commerce_r12_c1.jpg" style="width: 200px" >
<asp:DataList ID="DataList1" runat="server" Width="50px">
  <itemtemplate>
    <table width="180" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><a href='Details.aspx?id=<%# DataBinder.Eval(Container.DataItem, "Id") %>'><%# DataBinder.Eval(Container.DataItem, "title") %></a>
</td>
      </tr>
    </table>
  </itemtemplate>
</asp:DataList>                  
&nbsp;</td>
            </tr>
            <tr>
              <td height="11" style="width: 200px"><img src="images/images2/commerce_r14_c1.jpg" width="199" height="11" /></td>
            </tr>
            <tr>
              <td height="63" style="width: 200px"><a href=refer.aspx><img src="images/images2/commerce_r15_c1.jpg" width="199" height="61" border="0" /></a></td>
            </tr>
          </table></td>
          <td width="77%"   valign="top" align="center" >
            <asp:GridView ID="GridView1"  
        runat="server"   Width="600px"  HorizontalAlign="Center" AutoGenerateColumns="False" >
      <columns>
                      <asp:BoundField DataField="SortName" HeaderText="搜索结果" />
                      <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Details.aspx?id={0}"
                          DataTextField="title" HeaderText="标题" />
                      <asp:BoundField DataField="userfrom" HeaderText="网页来自" />
                      <asp:BoundField DataField="dtt" HeaderText="更新时间" />
                      <asp:BoundField DataField="nod" HeaderText="点击" />
            </Columns><RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
          </td>
        </tr>
        <tr>
          <td colspan="2"  style="height: 105px" ><table  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="27%" height="228">&nbsp;<table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
                      <tr>
                          <td width="212" valign="top" style="width: 202px">
                              <table cellpadding="0" cellspacing="0">
                                  <tr>
                                      <td>
                                          <img src="Images/commerce_r16_c1.jpg" /></td>
                                  </tr>
                                  <tr>
                                      <td align="center" background="images/commerce_r20_c1.jpg" height="209" valign="top">
                                          &nbsp;
                                          <uc2:WebUserControlSpClass ID="WebUserControlSpClass1" runat="server" />                                      </td>
                                  </tr>
                                  <tr>
                                      <td>
                                          <img height="10" src="images/commerce_r22_c1.jpg" width="200" /></td>
                                  </tr>
                              </table>                          </td>
                          <td align="center" valign="top" width="754"> <asp:GridView ID="GridView2"  OnPageIndexChanging="GridView2_PageIndexChanging" 
        runat="server"  AllowPaging="True" PageSize="14" Width="600px" AutoGenerateColumns="False" HorizontalAlign="Center" >
      <columns>
                                  <asp:BoundField DataField="SortName" HeaderText="搜索结果" />
                                  <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="Details.aspx?id={0}"
                          DataTextField="title" HeaderText="标题" />
                                  <asp:BoundField DataField="userfrom" HeaderText="网页来自" />
                                  <asp:BoundField DataField="dtt" HeaderText="更新时间" />
                                  <asp:BoundField DataField="nod" HeaderText="点击" />
                          </Columns>
                              <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                              <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                              <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                              <AlternatingRowStyle BackColor="White" />
                              <RowStyle BackColor="#EFF3FB" />
                              <EditRowStyle BackColor="#2461BF" />
                          </asp:GridView>
                        </td>
                      </tr>
                  </table></td>
            </tr>
          </table></td>
       </tr>
  </table>    
<!--#include file="down.htm"-->
</form>

</body>
</html>

⌨️ 快捷键说明

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