|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
ASP脚本是采用明文(plaintext)方式来编写的。datagrid|分页<%@Pagelanguage="c#"EnableViewState="true"Codebehind="DataGridPaging.aspx.cs"AutoEventWireup="false"Inherits="eMeng.Exam.DataGridPaging.DataGridPaging"%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.0Transitional//EN"><HTML><HEAD><metacontent="VisualBasic7.0"name="CODE_LANGUAGE"><metacontent="JavaScript"name="vs_defaultClientScript"><metacontent="http://schemas.microsoft.com/intellisense/ie5"name="vs_targetSchema"></HEAD><bodyMS_POSITIONING="GridLayout"><formid="Form1"runat="server"><asp:datagridid="MyDataGrid"runat="server"AutoGenerateColumns="False"HorizontalAlign="Center"AlternatingItemStyle-BackColor="#eeeeee"HeaderStyle-BackColor="#aaaadd"Font-Size="8pt"Font-Name="Verdana"CellSpacing="0"CellPadding="3"GridLines="Both"BorderWidth="1"BorderColor="black"OnPageIndexChanged="MyDataGrid_Page"PagerStyle-HorizontalAlign="Right"PagerStyle-Mode="NumericPages"PageSize="5"AllowPaging="True"><AlternatingItemStyleBackColor="#EEEEEE"></AlternatingItemStyle><HeaderStyleBackColor="#AAAADD"Font-Bold="True"HorizontalAlign="Center"></HeaderStyle><PagerStyleHorizontalAlign="Right"Mode="NumericPages"></PagerStyle><Columns><asp:BoundColumnHeaderText="题目"DataField="Title"HeaderStyle-Width="480px"></asp:BoundColumn><asp:BoundColumnHeaderText="宣布日期"DataField="CreateDate"DataFormatString="{0:yyyy-MM-ddhh:mm:ss}"></asp:BoundColumn></Columns></asp:datagrid><pstyle="FONT-SIZE:9pt"align="center"><asp:labelid="lblPageCount"runat="server"></asp:label><asp:labelid="lblCurrentIndex"runat="server"></asp:label><asp:linkbuttonid="btnFirst"onclick="PagerButtonClick"runat="server"Font-Name="verdana"Font-size="8pt"ForeColor="navy"CommandArgument="0"></asp:linkbutton><asp:linkbuttonid="btnPrev"onclick="PagerButtonClick"runat="server"Font-Name="verdana"Font-size="8pt"ForeColor="navy"CommandArgument="prev"></asp:linkbutton><asp:linkbuttonid="btnNext"onclick="PagerButtonClick"runat="server"Font-Name="verdana"Font-size="8pt"ForeColor="navy"CommandArgument="next"></asp:linkbutton><asp:linkbuttonid="btnLast"onclick="PagerButtonClick"runat="server"Font-Name="verdana"Font-size="8pt"ForeColor="navy"CommandArgument="last"></asp:linkbutton></p></form></body></HTML>usingSystem;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Data.OleDb;usingSystem.Drawing;usingSystem.Web;usingSystem.Web.SessionState;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.HtmlControls;namespaceeMeng.Exam.DataGridPaging{///<summary>///DataGridPaging的择要申明。///</summary>publicclassDataGridPaging:System.Web.UI.Page{protectedSystem.Web.UI.WebControls.DataGridMyDataGrid;protectedSystem.Web.UI.WebControls.LabellblPageCount;protectedSystem.Web.UI.WebControls.LabellblCurrentIndex;protectedSystem.Web.UI.WebControls.LinkButtonbtnFirst;protectedSystem.Web.UI.WebControls.LinkButtonbtnPrev;protectedSystem.Web.UI.WebControls.LinkButtonbtnNext;protectedSystem.Web.UI.WebControls.LinkButtonbtnLast;privateOleDbConnectioncn=newOleDbConnection();privatevoidPage_Load(objectsender,System.EventArgse){//在此处安排用户代码以初始化页面btnFirst.Text="最首页";btnPrev.Text="前一页";btnNext.Text=</p>当然了,现在国内CRM厂商的产品与其说是CRM,但从至少从我的角度分析上来看,充其量只是一个大型的进销存而已了,了解尚浅,不够胆详评,这里只提技术问题 |
|