Asp.net源码专业站
首页->投票调查->苹果投票系统源码及毕业论文>>delete.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:苹果投票系统源码及毕业论文
当前文件:文件类型 AppleVote/delete.aspx[12K,2009-6-12 11:31:41]打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="delete" %> 2 3<%@ Register Src="mycontroler/foot.ascx" TagName="foot" TagPrefix="uc1" %> 4<%@ Register Src="mycontroler/head.ascx" TagName="head" TagPrefix="uc2" %> 5 6<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 7 8<html xmlns="http://www.w3.org/1999/xhtml" > 9<head runat="server"> 10 <title>项目管理页面</title> 11</head> 12<body style="background-image: url(image/back.jpg)" scroll="yes"> 13 <form id="form1" runat="server"> 14 <div> 15 <table width=100% border="0" style="background-color: #999933;"> 16 <tr> 17 <td style="background-image: url(image/head.png); width: 1051px; vertical-align: middle; height: 245px; text-align: center;"></td> 18 </tr> 19 <tr> 20 <td height="48" style="width: 1051px">&nbsp; 21 <asp:Label ID="Label4" runat="server" ForeColor="#8080FF" Width="177px"></asp:Label> 22 <uc2:head ID="Head1" runat="server" /> 23 </td> 24 </tr> 25 <tr> 26 <td style="width: 1051px; height: 494px;"> 27 <table> 28 <tr> 29 <td style="width: 823px; height: 397px"> 30 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString2 %>" 31 DeleteCommand="DELETE FROM [voteMaster] WHERE [id] = @id" InsertCommand="INSERT INTO [voteMaster] ([voteTitle], [voteSum], [image], [endTime]) VALUES (@voteTitle, @voteSum, @image, @endTime)" 32 SelectCommand="SELECT [id], [voteTitle], [voteSum], [image], [endTime] FROM [voteMaster]" 33 UpdateCommand="UPDATE [voteMaster] SET [voteTitle] = @voteTitle, [voteSum] = @voteSum, [image] = @image, [endTime] = @endTime WHERE [id] = @id"> 34 <DeleteParameters> 35 <asp:Parameter Name="id" Type="Int32" /> 36 </DeleteParameters> 37 <UpdateParameters> 38 <asp:Parameter Name="voteTitle" Type="String" /> 39 <asp:Parameter Name="voteSum" Type="Int32" /> 40 <asp:Parameter Name="image" Type="String" /> 41 <asp:Parameter Name="endTime" Type="DateTime" /> 42 <asp:Parameter Name="id" Type="Int32" /> 43 </UpdateParameters> 44 <InsertParameters> 45 <asp:Parameter Name="voteTitle" Type="String" /> 46 <asp:Parameter Name="voteSum" Type="Int32" /> 47 <asp:Parameter Name="image" Type="String" /> 48 <asp:Parameter Name="endTime" Type="DateTime" /> 49 </InsertParameters> 50 </asp:SqlDataSource> 51 <asp:Label ID="Label3" runat="server" Font-Size="X-Large" ForeColor="#00C0C0" Text="主题修改"></asp:Label> 52 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 53 AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" PageSize="5" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" Width="100%" > 54 <PagerSettings PageButtonCount="5" /> 55 <Columns> 56 <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" 57 SortExpression="id" /> 58 <asp:BoundField DataField="voteTitle" HeaderText="voteTitle" SortExpression="voteTitle" /> 59 <asp:BoundField DataField="voteSum" HeaderText="voteSum" SortExpression="voteSum" /> 60 <asp:BoundField DataField="endTime" HeaderText="endTime" SortExpression="endTime" /> 61 <asp:TemplateField> 62 <EditItemTemplate> 63 <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("image") %>'></asp:TextBox> 64 </EditItemTemplate> 65 <ItemTemplate> 66 <asp:Image ID="Image1" runat="server" ImageUrl='<%#"image/master/"+ Eval("image") %>' /> 67 </ItemTemplate> 68 </asp:TemplateField> 69 <asp:CommandField ShowDeleteButton="True" ShowSelectButton="True" ButtonType="Button" ShowEditButton="True" /> 70 </Columns> 71 <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> 72 <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> 73 <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> 74 <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> 75 <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> 76 <AlternatingRowStyle BackColor="#F7F7F7" /> 77 </asp:GridView> 78 <asp:Label ID="Label2" runat="server" Font-Size="X-Large" ForeColor="#00C0C0"></asp:Label></td> 79 </tr> 80 <tr> 81 <td style="width: 823px; height: 416px"> 82 <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString2 %>" 83 DeleteCommand="DELETE FROM [voetDetails] WHERE [voteDetailsID] = @voteDetailsID" 84 InsertCommand="INSERT INTO [voetDetails] ([voteItem], [voteNum], [id]) VALUES (@voteItem, @voteNum, @id)" 85 SelectCommand="SELECT * FROM [voetDetails] WHERE ([id] = @id)" UpdateCommand="UPDATE [voetDetails] SET [voteItem] = @voteItem, [voteNum] = @voteNum, [id] = @id WHERE [voteDetailsID] = @voteDetailsID"> 86 <DeleteParameters> 87 <asp:Parameter Name="voteDetailsID" Type="Int32" /> 88 </DeleteParameters> 89 <UpdateParameters> 90 <asp:Parameter Name="voteItem" Type="String" /> 91 <asp:Parameter Name="voteNum" Type="Int32" /> 92 <asp:Parameter Name="id" Type="Int32" /> 93 <asp:Parameter Name="voteDetailsID" Type="Int32" /> 94 </UpdateParameters> 95 <SelectParameters> 96 <asp:ControlParameter ControlID="GridView1" DefaultValue="1" Name="id" PropertyName="SelectedValue" 97 Type="Int32" /> 98 </SelectParameters> 99 <InsertParameters> 100 <asp:Parameter Name="voteItem" Type="String" /> 101 <asp:Parameter Name="voteNum" Type="Int32" /> 102 <asp:Parameter Name="id" Type="Int32" /> 103 </InsertParameters> 104 </asp:SqlDataSource> 105 <asp:DetailsView ID="DetailsView1" runat="server" AllowPaging="True" AutoGenerateRows="False" 106 DataKeyNames="voteDetailsID" DataSourceID="SqlDataSource2" Height="50px" Width="100%" BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Horizontal" OnItemDeleted="DetailsView1_ItemDeleted" OnItemInserted="DetailsView1_ItemInserted" OnItemUpdated="DetailsView1_ItemUpdated" > 107 <Fields> 108 <asp:BoundField DataField="voteDetailsID" HeaderText="voteDetailsID" InsertVisible="False" 109 ReadOnly="True" SortExpression="voteDetailsID" /> 110 <asp:BoundField DataField="voteItem" HeaderText="voteItem" SortExpression="voteItem" /> 111 <asp:BoundField DataField="voteNum" HeaderText="voteNum" SortExpression="voteNum" /> 112 <asp:BoundField DataField="id" HeaderText="id" SortExpression="id" /> 113 <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowInsertButton="True" ButtonType="Button" /> 114 </Fields> 115 <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> 116 <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> 117 <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> 118 <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> 119 <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> 120 <AlternatingRowStyle BackColor="#F7F7F7" /> 121 </asp:DetailsView> 122 <br /> 123 <br /> 124 <br /> 125 <br /> 126 <br /> 127 <asp:Label ID="Label1" runat="server" Font-Size="X-Large" ForeColor="#00C0C0" Height="27px" Width="162px"></asp:Label><br /> 128 <br /> 129 <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString3 %>" 130 DeleteCommand="DELETE FROM [voteConfig] WHERE [id] = @id" InsertCommand="INSERT INTO [voteConfig] ([id], [checkIP], [checkTime]) VALUES (@id, @checkIP, @checkTime)" 131 SelectCommand="SELECT * FROM [voteConfig] WHERE ([id] = @id)" UpdateCommand="UPDATE [voteConfig] SET [checkIP] = @checkIP, [checkTime] = @checkTime WHERE [id] = @id"> 132 <DeleteParameters> 133 <asp:Parameter Name="id" Type="Int32" /> 134 </DeleteParameters> 135 <UpdateParameters> 136 <asp:Parameter Name="checkIP" Type="Int32" /> 137 <asp:Parameter Name="checkTime" Type="Int32" /> 138 <asp:Parameter Name="id" Type="Int32" /> 139 </UpdateParameters> 140 <SelectParameters> 141 <asp:ControlParameter ControlID="GridView1" Name="id" PropertyName="SelectedValue" 142 Type="Int32" /> 143 </SelectParameters> 144 <InsertParameters> 145 <asp:Parameter Name="id" Type="Int32" /> 146 <asp:Parameter Name="checkIP" Type="Int32" /> 147 <asp:Parameter Name="checkTime" Type="Int32" /> 148 </InsertParameters> 149 </asp:SqlDataSource> 150 <asp:DetailsView ID="DetailsView2" runat="server" AutoGenerateRows="False" BackColor="White" 151 BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="id" 152 DataSourceID="SqlDataSource3" GridLines="Horizontal" Height="50px" 153 154 Width="100%"> 155 <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" /> 156 <EditRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" /> 157 <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" /> 158 <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" /> 159 <Fields> 160 <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id" /> 161 <asp:BoundField DataField="checkIP" FooterText="IP设置" HeaderText="checkIP" SortExpression="checkIP" /> 162 <asp:BoundField DataField="checkTime" HeaderText="checkTime" SortExpression="checkTime" /> 163 <asp:CommandField ButtonType="Button" ShowDeleteButton="True" ShowEditButton="True" /> 164 </Fields> 165 <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" /> 166 <AlternatingRowStyle BackColor="#F7F7F7" /> 167 </asp:DetailsView> 168 </td> 169 </tr> 170 </table> 171 </td> 172 </tr> 173 <tr> 174 <td height="78" style="width: 1051px; vertical-align: middle; text-align: center;"> 175 <uc1:foot ID="Foot1" runat="server" /> 176 &nbsp; 177 </td> 178 </tr> 179</table> 180 181 </div> 182 </form> 183</body> 184</html> 185
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:苹果投票系统源码及毕业论文
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146