Asp.net源码专业站
首页->投票调查->苹果投票系统源码及毕业论文>>moreNews.aspx>>源码在线查看
温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:苹果投票系统源码及毕业论文
当前文件:文件类型 AppleVote/moreNews.aspx[3K,2009-6-12 11:31:41]打开代码结构图
普通视图
		            
1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="moreNews.aspx.cs" Inherits="moreNews" %> 2 3<%@ Register Src="mycontroler/head.ascx" TagName="head" TagPrefix="uc1" %> 4<%@ Register Src="mycontroler/foot.ascx" TagName="foot" 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: 247px; text-align: center;"></td> 18 </tr> 19 <tr> 20 <td style="width: 1051px; height: 33px;">&nbsp; 21 <uc1:head ID="Head1" runat="server" /> 22 </td> 23 </tr> 24 <tr> 25 <td height="536" style="width: 100%; text-align: center; vertical-align: top;"> 26 <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:voteConnectionString2 %>" 27 DeleteCommand="DELETE FROM [newNRB] WHERE [id] = @id" InsertCommand="INSERT INTO [newNRB] ([biaoti], [shijian]) VALUES (@biaoti, @shijian)" 28 SelectCommand="SELECT [id], [biaoti], [shijian] FROM [newNRB] ORDER BY [shijian] DESC" UpdateCommand="UPDATE [newNRB] SET [biaoti] = @biaoti, [shijian] = @shijian WHERE [id] = @id"> 29 <DeleteParameters> 30 <asp:Parameter Name="id" Type="Int32" /> 31 </DeleteParameters> 32 <UpdateParameters> 33 <asp:Parameter Name="biaoti" Type="String" /> 34 <asp:Parameter Name="shijian" Type="DateTime" /> 35 <asp:Parameter Name="id" Type="Int32" /> 36 </UpdateParameters> 37 <InsertParameters> 38 <asp:Parameter Name="biaoti" Type="String" /> 39 <asp:Parameter Name="shijian" Type="DateTime" /> 40 </InsertParameters> 41 </asp:SqlDataSource> 42 &nbsp;&nbsp;&nbsp; 43 <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" 44 AutoGenerateColumns="False" DataKeyNames="id" DataSourceID="SqlDataSource1" Width="100%" OnSelectedIndexChanged="GridView1_SelectedIndexChanged"> 45 <Columns> 46 <asp:BoundField DataField="biaoti" HeaderText="标题" SortExpression="biaoti" > 47 <HeaderStyle HorizontalAlign="Center" /> 48 <FooterStyle HorizontalAlign="Left" /> 49 </asp:BoundField> 50 <asp:BoundField DataField="shijian" HeaderText="发表时间" SortExpression="shijian" > 51 <HeaderStyle HorizontalAlign="Center" /> 52 <FooterStyle HorizontalAlign="Left" /> 53 </asp:BoundField> 54 <asp:CommandField SelectText="查看" ShowSelectButton="True" /> 55 </Columns> 56 </asp:GridView> 57 </td> 58 </tr> 59 <tr> 60 <td style="width: 1051px; vertical-align: middle; text-align: center; height: 35px;"> 61 <uc2:foot ID="Foot1" runat="server" /> 62 &nbsp; 63 </td> 64 </tr> 65</table> 66 67 </div> 68 </form> 69</body> 70</html> 71
还没有找到您心仪的内容?请用.net源码大搜捕
代码片断 打包下载该项目完整源码:苹果投票系统源码及毕业论文
51Aspx.com 版权所有 CopyRight © 2006-2010. 京ICP备06046876号 本站法律顾问:ITlaw-庄毅雄律师
返回顶部
客户服务:点击这里进行客户咨询 业务合作:点击这里洽谈业务合作 合作热线:010-68880146