📄 index.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="index.aspx.cs" Inherits="index" %>
<%@ Register Src="mycontroler/foot.ascx" TagName="foot" TagPrefix="uc1" %>
<%@ Register Src="mycontroler/head.ascx" TagName="head" TagPrefix="uc2" %>
<!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 runat="server">
<title>系统主页</title>
</head>
<body scroll="yes" style="background-image: url(image/back.jpg)" >
<form id="form1" runat="server" >
<div>
<table width=100% border="0" style="background-color: #999933;">
<tr>
<td style="background-image: url(image/head.png); width: 885px; vertical-align: middle; height: 248px; text-align: center;"></td>
</tr>
<tr>
<td style="width: 885px; vertical-align: top;" height="79">
<uc2:head ID="Head1" runat="server" />
</td>
</tr>
<tr>
<td style="width: 885px; height: 512px;">
<table border="1">
<tr>
<td style="vertical-align: top; width: 159px; height: 451px; border-top-style: dotted; border-right-style: dotted; border-left-style: dotted; border-bottom-style: dotted;">
<table style="width: 158px">
<tr>
<td style="background-image: url(image/index_top_362.gif); width: 1027px; height: 177px">
<table>
<tr>
<td style="width: 152px">
</td>
</tr>
<tr>
<td style="height: 101px" width="150"><marquee direction=down height="130" width="150" scrollamount="3" style="color: #000000" >
<span style="color: #ff33ff">公告:苹果投票系统欢迎您!</span></marquee>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 1027px; height: 387px; vertical-align: top;">
<table style="width: 154px">
<tr>
<td style="width: 100px; height: 45px">
<marquee direction=left behavior=scroll scrollamount=5><span style="color: #3333ff; font-size: 16pt;">友情链接</span></marquee></td>
</tr>
<tr>
<td style="width: 100px; height: 23px">
<a href="http://www.cnzz.cn" target=_blank >中国站长</a></td>
</tr>
<tr>
<td style="width: 100px; height: 23px">
<a href="http://www.baidu.com" target=_blank >百度</a></td>
</tr>
<tr>
<td style="width: 100px; height: 21px">
<a href="http://www.wenxuwu.com.cn" target=_blank >文学屋</a></td>
</tr>
<tr>
<td style="width: 100px; height: 21px">
<a href="http://www.sina.com" target=_blank >新浪</a></td>
</tr>
<tr>
<td style="width: 100px; height: 98px"><a target=_blank href=http://wpa.qq.com/msgrd?V=1&Uin=95487724><img src="image/pa.gif" /></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td style="width: 2448px; height: 451px; vertical-align: top;">
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString2 %>"
SelectCommand="SELECT [id], [voteTitle], [mode], [image], [voteSum] FROM [voteMaster]">
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1"
OnSelectedIndexChanged="GridView1_SelectedIndexChanged" PageSize="5" Width="100%" CellPadding="3" GridLines="Horizontal" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" ShowHeader="False">
<Columns>
<asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/image/voteSubmit.gif" SelectText="" />
<asp:BoundField DataField="voteTitle" HeaderText="投票标题" SortExpression="voteTitle" >
<HeaderStyle HorizontalAlign="Center" />
<FooterStyle HorizontalAlign="Left" />
</asp:BoundField>
<asp:BoundField DataField="voteSum" HeaderText="总票数" SortExpression="voteSum" >
<HeaderStyle HorizontalAlign="Center" />
<FooterStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:TemplateField>
<EditItemTemplate>
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("image") %>'></asp:TextBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Image ID="Image1" runat="server" ImageUrl='<%# "image/master/"+Eval("image") %>' />
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center" />
<FooterStyle HorizontalAlign="Center" Height="100px" Width="100px" />
</asp:TemplateField>
</Columns>
<FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
<RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
<SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
<PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
<HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
<AlternatingRowStyle BackColor="#F7F7F7" />
</asp:GridView>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="width: 885px; vertical-align: middle; text-align: center; height: 42px;">
<uc1:foot ID="Foot1" runat="server" />
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -