yueyue, I have fallen in love with you for

2011-02-09, 01:18:25 PM

2011年8月17日

摘要: 在自定义用户控件后台cs代码中加上如下代码首先在前台放置一个隐藏控件HiddenFiledpublic int Sss{ get { return this.HiddenFiled1.value; }set { this.HiddenFiled1.value=value; }} 阅读全文

posted @ 2011-08-17 11:31 张超的博客 阅读(333) 评论(0) 推荐(0)

摘要: <siteMap enabled="true" defaultProvider="SiteMapAllChinese"> <--这里的提供程序是和下面的name对应的名字--> <providers> <clear/><add name="SiteMapAllChinese" type="System.Web.XMLSiteMapProvider" SiteMapFiles="~/Web.SiteMap" securityTrimmingEn 阅读全文

posted @ 2011-08-17 09:19 张超的博客 阅读(300) 评论(0) 推荐(0)


2011年8月16日

摘要: 在项目中建立一个asp.net的主题文件,然后再到webconfig里面配置<pages theme="Default"> 这个节点 阅读全文

posted @ 2011-08-16 17:14 张超的博客 阅读(266) 评论(0) 推荐(0)


2011年8月15日

摘要: 》数据分析:分析客户的业务和数据处理需求 收集信息 标示对象 标示每个对象需要存储的信息 标示对象之间的关系》概要设计:绘制数据库的E-R模型图实体、属性、关系、映射基数、实体关系图:矩形代表实体集、椭圆标示属性、菱形表示关系集、直线用来链接属性和实体集,也用来链接实体集和关系集》详细设计:将E-R图转换为多张表,进行逻辑设计,确认各表的主外键,并依据三大范式设计 阅读全文

posted @ 2011-08-15 00:36 张超的博客 阅读(172) 评论(0) 推荐(0)

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Configuration;using System.Data;using System.Data.SqlClient;namespace RuPengSite.DataTier{ public static class SqlHelper { public static string ConnStr { get { return ConfigurationManager.ConnectionStrings[ 阅读全文

posted @ 2011-08-15 00:05 张超的博客 阅读(479) 评论(0) 推荐(0)

摘要: 存储过程的定义:ALTER PROCEDURE [dbo].[addStuinfo]@name varchar(50),@age int,@sex varchar(10),@address varchar(50)ASinsert into stuinfo(name,age,sex,address)values(@name,@age,@sex,@address)******************************************************存储过程一个简单的例子:int addnum = 0; try { //打开数据库连接 DBHelper.con.Open(); 阅读全文

posted @ 2011-08-15 00:02 张超的博客 阅读(200) 评论(0) 推荐(0)


2011年8月14日

摘要: 开始事物:begin transaction提交事物:commit transaction回滚事物:rollback transaction例子:begin transactiondeclare @errorSum int --定义局部变量set @errorSum=0 --初始化临时变量update bank set currentMoney=currentMoney-1000 where customerName='张三'set @errorSum=@errorSum+@@error --累计是否有错误update bank set currentMoney=current 阅读全文

posted @ 2011-08-14 23:16 张超的博客 阅读(266) 评论(0) 推荐(0)

摘要: USE [MySchool]GO/****** Object: StoredProcedure [dbo].[usp_addscore] Script Date: 01/19/2011 14:29:46 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO-- =============================================-- Author:<Author,,Name>-- Create date: <Create Date,,>-- Description:<Description, 阅读全文

posted @ 2011-08-14 22:44 张超的博客 阅读(227) 评论(0) 推荐(0)

摘要: <frameset rows="200px,*,200px"><!--*代表剩下的部分--><frame src="../a.html"></frame><frameset cols="200px,*"><frame src="../a.html"></frame><frame name="singFrame" src="sing.htm"></frame></f 阅读全文

posted @ 2011-08-14 20:33 张超的博客 阅读(189) 评论(0) 推荐(0)

摘要: if (条件) begin 语句1语句2 endelsebegin 语句1语句2 end例子:declare @n intwhere (1=1)begin select @n=count(*) from stuMarks where writtenExam<60if (@n>0)updateelse[break]从内层的while循环中退出 阅读全文

posted @ 2011-08-14 20:26 张超的博客 阅读(257) 评论(0) 推荐(0)


博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3