摘要: /// <summary> /// 将Datatable转换为泛型列表对象 /// </summary> /// <typeparam name="T">泛型T的数据类型</typeparam> /// <param name="dataTable">待转换的DataTable对象</param> /// <returns>目标泛型列表对象</returns> protected List<T> DataTableToList<T>(D 阅读全文
posted @ 2011-07-29 20:27 _best 阅读(423) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OptionAjax.aspx.cs" Inherits="OptionAjax" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htm 阅读全文
posted @ 2011-07-29 20:24 _best 阅读(714) 评论(0) 推荐(0) 编辑
摘要: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoginByAjax.aspx.cs" Inherits="LoginByAjax" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><h 阅读全文
posted @ 2011-07-29 20:21 _best 阅读(215) 评论(0) 推荐(0) 编辑
摘要: proc up_GetPagedData@pi int,--页码@ps int, --页容量@rc float output, --总行数@pc float output--总页数asbegin select @rc=COUNT(cid) from Classes where CIsDel=0--查出总行数select @pc=CEILING(@rc/@ps) -- 算出总页数 CEILING(1.1)=2 floor(1.1)=1select * from (select ROW_NUMBER() over(order by cid) as RNum,* from Classes where 阅读全文
posted @ 2011-07-29 20:17 _best 阅读(105) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Text;using System.Data;using System.Data.SqlClient;using System.Configuration;namespace DAL{ /// <summary> /// 数据库操作类 /// </summary> public class SqlHelper { //从配置文件获得连接字符串 private static string connStr = ConfigurationManager.ConnectionStrings["connStr" 阅读全文
posted @ 2011-07-29 20:14 _best 阅读(273) 评论(0) 推荐(0) 编辑
摘要: function DeleteCategoryInfo(obj) { var CategoryName = $(obj).parent("td").parent("tr").children(":first").children(":last").text(); if (confirm("您确定要删除该项" + CategoryName + "?")) { // var CategoryId = $(obj).parent("td").parent(&qu 阅读全文
posted @ 2011-07-22 18:31 _best 阅读(189) 评论(0) 推荐(0) 编辑
摘要: $(document).ready(function() { $("#dgvCategoryList").find("tr").slice(1).each(function(i) { var cateId = $(this).attr("cateId"); var parentCateId = $(this).attr("parentCateId"); if (parentCateId.length == 0) { var img = "<img src='../Content/Images 阅读全文
posted @ 2011-07-22 18:23 _best 阅读(404) 评论(0) 推荐(0) 编辑
摘要: SELECT ProductName, [UserInfo].UserName, [ReviewContent] ,[ReviewDateTime] ,[ReviewLevel] ,[IsShowd] ,[IPAddress] FROM [B2CRelease].[dbo].[ProductReviewsInfo],[B2CRelease].[dbo].[UserInfo],[B2CRelease].[dbo].[Products] where [ProductReviewsInfo].UserId=[UserInfo].Id and [ProductReviewsInfo].ProductI 阅读全文
posted @ 2011-07-22 18:09 _best 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1330-1343-5891-2032-5077-00841330-1605-8079-2483-6519-03461330-1290-7276-7887-1562-86361330-1798-9789-1245-6068-69161330-1765-2251-0841-4285-18381330-1795-2880-5375-9721-53921330-1221-6824-4838-0308-68231330-1918-5753-0992-7547-9115127.0.0.1 activate.adobe.com 127.0.0.1 practivate.adobe.com 127.0.0. 阅读全文
posted @ 2011-01-09 20:50 _best 阅读(1000) 评论(0) 推荐(0) 编辑