📄 ad.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ad.aspx.cs" Inherits="admin_ad" %>
<!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>
<link href="../images/news.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:DataList ID="DataList1" runat="server" CellPadding="4" ForeColor="#333333" OnCancelCommand="DataList1_CancelCommand" OnDeleteCommand="DataList1_DeleteCommand" OnEditCommand="DataList1_EditCommand" OnUpdateCommand="DataList1_UpdateCommand">
<ItemTemplate>
<table width="500">
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
广告名称</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:Label ID="Label1" runat="server" Text='<%# Eval("AlternateText") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
图片地址</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("ImageUrl") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
关键词</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:Label ID="Label3" runat="server" Text='<%# Eval("Keyword") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
显示权重</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:Label ID="Label4" runat="server" Text='<%# Eval("Impressions") %>'></asp:Label></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed; height: 22px">
广告指向</td>
<td colspan="2" style="width: 400px; border-bottom: #0099ff 1px dashed; height: 22px;
background-color: #99ccff">
<a href='<%# Eval("NavigateUrl") %>' target=_blank><asp:Label ID="Label5" runat="server" Text='<%# Eval("NavigateUrl") %>'></asp:Label></a></td>
</tr>
<tr>
<td align="center" colspan="3" style="border-bottom: #0099ff 1px dashed; height: 27px;
background-color: #99ccff">
<asp:Button ID="Button1" runat="server" CommandName="edit" Text="修改广告" />
<asp:Button ID="Button2" runat="server" CommandName="delete" Text="删除广告" /></td>
</tr>
</table>
</ItemTemplate>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
<AlternatingItemStyle BackColor="White" />
<ItemStyle BackColor="#EFF3FB" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<EditItemTemplate>
<table width="500">
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
广告名称</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("AlternateText") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
图片地址</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:TextBox ID="TextBox2" runat="server" Text='<%# Eval("ImageUrl") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
关键词</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff;" colspan="2">
<asp:TextBox ID="TextBox3" runat="server" Text='<%# Eval("Keyword") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed; height: 27px;">
显示权重</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed; background-color: #99ccff; height: 27px;" colspan="2">
<asp:TextBox ID="TextBox4" runat="server" Text='<%# Eval("Impressions") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed; height: 27px">
广告指向</td>
<td colspan="2" style="width: 400px; border-bottom: #0099ff 1px dashed; height: 27px;
background-color: #99ccff">
<asp:TextBox ID="TextBox5" runat="server" Text='<%# Eval("NavigateUrl") %>'></asp:TextBox></td>
</tr>
<tr>
<td align="center" colspan="3" style="border-bottom: #0099ff 1px dashed; background-color: #99ccff">
<asp:Button ID="Button3" runat="server" CommandName="update" Text="更新" />
<asp:Button ID="Button4" runat="server" CommandName="cancel" Text="取消" /></td>
</tr>
</table>
</EditItemTemplate>
</asp:DataList> <table width="500">
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
广告名称</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed;" colspan="2">
<asp:TextBox ID="na" runat="server" Text='<%# Eval("AlternateText") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
图片地址</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed;" colspan="2">
<asp:TextBox ID="url" runat="server" Text='<%# Eval("ImageUrl") %>'></asp:TextBox>
<asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click">上传图片</asp:LinkButton>
<div id="DIV1" runat="server" style="width: 400px; height: 100px" visible="false">
<table style="width: 400px; height: 100px">
<tr>
<td colspan="2" style="height: 55px">
<asp:Image ID="img" runat="server" Height="50px" Width="400px" /></td>
</tr>
<tr>
<td style="width:300px">
<asp:FileUpload ID="fu" runat="server" Width="287px" /></td>
<td style="width: 100px">
<asp:Button ID="Button6" runat="server" OnClick="Button6_Click" Text="上传" /></td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed;">
关键词</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed;" colspan="2">
<asp:TextBox ID="kw" runat="server" Text='<%# Eval("Keyword") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed; height: 27px;">
显示权重</td>
<td style="width: 400px; border-bottom: #0099ff 1px dashed;" colspan="2">
<asp:TextBox ID="qz" runat="server" Text='<%# Eval("Impressions") %>'></asp:TextBox></td>
</tr>
<tr>
<td style="width: 100px; border-bottom: #0099ff 1px dashed; height: 27px">
广告指向</td>
<td colspan="2" style="width: 400px; border-bottom: #0099ff 1px dashed">
<asp:TextBox ID="ng" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td align="center" colspan="3" style="border-bottom: #0099ff 1px dashed; background-color: #99ccff">
<asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text="增加" /></td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -