|
存储过程改自bigeagle的论坛分页程序。请大家批判!:)select.aspx
--------------------------------------------------------------------------------
<%@ Page Language="C#" %> <%@ import Namespace="System.Data" %> <%@ import Namespace="System.Data.SqlClient" %> <script runat="server">
protected void Page_Load(Object sender, EventArgs e) { int intPageNo,intPageSize,intPageCount; intPageSize = 25; if (Request["CurrentPage"]==null) { intPageNo = 1; } else { intPageNo = Int32.Parse(Request["CurrentPage"]); } SqlConnection mySqlConnection = new SqlConnection("server=(local);Database=test;user id=sa;password="); SqlCommand mySqlCommand = new SqlCommand("up_GetTopicList", mySqlConnection); mySqlCommand.CommandType = CommandType.StoredProcedure; SqlParameter workParm; //搜索表字段,以","号分隔
上一篇:用ASP.NET实现一个简单的计算器适合入门者
下一篇:DotNet语音技术实现
|