摘要: exec spPage @pageSize=13,@pageIndex=4if object_id('spPage')is not null drop proc spPagegoCREATE PROCEDURE spPage(@pageSize int, ----每页显示的记录个数@pageIndex int ----要显示哪一页的记录)ASDECLARE @Counts INTDECLARE @pageUp INT DECLARE @pageDown INT--获得总记录数select @Counts=rows from sysindexes where id = objec 阅读全文
posted @ 2011-05-26 16:31 Silence-01 阅读(102) 评论(0) 推荐(0) 编辑
摘要: <input type ="button" value ="OK" onclick="btn('text')" /> <br /> <input type ="text" id="text"/>----------------------------------------------------------------var xmlhttp;function loadXMLDoc() { if (window.XMLHttpRequest) 阅读全文
posted @ 2011-05-26 10:03 Silence-01 阅读(179) 评论(0) 推荐(0) 编辑
摘要: obj表示:<div id="obj"></div>function input(obj) { var img = document.createElement("img"); img.src = "11.gif"; img.id = "img1"; var btn = document.createElement("input"); btn.type = "button"; btn.value = "click"; btn.onc 阅读全文
posted @ 2011-05-26 09:53 Silence-01 阅读(163) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Collections;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace DBHelpers{ public class SqlHelper { //获取数据库连接字符串,其属于静态变量且只读,项目中所有文档可以直接使用,但不能修改 public static readonly string SQLConnection = Co 阅读全文
posted @ 2011-05-26 09:46 Silence-01 阅读(238) 评论(0) 推荐(0) 编辑
摘要: select @count=rows from sysindexes where id = object_id('Ip') and indid in (0,1) 阅读全文
posted @ 2011-05-26 09:45 Silence-01 阅读(123) 评论(0) 推荐(0) 编辑
摘要: asp.net页面:<head runat="server"> <title></title> <script src="JavaScript/JScript.js" type="text/javascript"></script></head><body onload ="Ajax()"> <form id="form1" runat="server"> <img src= 阅读全文
posted @ 2011-05-26 09:44 Silence-01 阅读(473) 评论(0) 推荐(0) 编辑