随笔分类 - asp.net
摘要:string url = "http://gw.api.taobao.com/router/rest"; string appkey = "21635046"; string appsecret = "fdf7e76c7cf2693d12943f42bb177da1"; string sessionKey = "6100c084de93ac021c879df03a4f699299a0cfe00b33d5b899573294"; ITopClient client = n...
阅读全文
摘要:-----------------------用户控件---------------<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="pageNum.ascx.cs" Inherits="WebBookShop.UserControls.pageNum" %> <link href="Css/page_bottom_new.css" rel="stylesheet" type="
阅读全文
摘要:处理大型项目时,使一个类分布于多个独立文件中可以让多位程序员同时对该类进行处理(相当于支持并行处理,很实用);– 使用自动生成的源时,无需重新创建源文件便可将代码添加到类中。动软生成的代码using System;using System.Data;using System.Text;using System.Data.SqlClient;using Maticsoft.DBUtility;//Please add referencesnamespace HotelManager.DAL{/// <summary>/// 是否存在该记录/// </summary>pub
阅读全文
摘要:/// <summary>/// 获得数据列表/// </summary>public List<HotelManager.Model.RoomType> DataTableToList(DataTable dt){List<HotelManager.Model.RoomType> modelList = new List<HotelManager.Model.RoomType>();int rowsCount = dt.Rows.Count;if (rowsCount > 0){HotelManager.Model.RoomT
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Configuration;using System.Data;//引用Web.config namespace DAL{ public class SqlHelper { #region 通用方法 // 数据连接池 private SqlConnection con; /// <summary> /// 返回数据库连接字符串 /// &l
阅读全文

浙公网安备 33010602011771号