上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: 前台引用.aspx:YanZhengCode.csC#代码using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using ... 阅读全文
posted @ 2015-08-18 10:26 tianqi123 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 文件上传控件:FileUpload - 控件,界面+方法+属性Button/LinkButton/ImageButtonFileUpload控件:1.SaveAs("要上传到服务器的绝对路径") 方法:上传文件。般需要使用Server.MapPath()进行相对路径与绝对路径之间的转换。2.File... 阅读全文
posted @ 2015-08-18 10:26 tianqi123 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 验证:一、非空验证 RequiredFieldValidatorErrorMessage - 验证出错后的提示信息ControlToValidate - 要验证的控件的IDDisplay - 显示方式。Static-不显示也占空间。Dynamic-不显示不占空间InitialValue - 验证的初... 阅读全文
posted @ 2015-08-18 10:24 tianqi123 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Default.aspx 网页界面代号:姓名:性别:民族:生日:Defaule.aspx.cs C#界面using System;using System.Collections.Generic;using System.Linq;using System.We... 阅读全文
posted @ 2015-08-18 10:23 tianqi123 阅读(363) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u... 阅读全文
posted @ 2015-08-16 00:23 tianqi123 阅读(211) 评论(0) 推荐(0) 编辑
摘要: usingSystem;usingSystem.Drawing;usingSystem.Drawing.Drawing2D;usingSystem.Drawing.Imaging;usingSystem.IO;usingSystem.Text;usingSystem.Web;namespaceDem... 阅读全文
posted @ 2015-08-16 00:04 tianqi123 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 用法为新建一个空页面,清除掉页面上的HTML;然后复制一下代码到页面中用法Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1 protected voi... 阅读全文
posted @ 2015-08-16 00:02 tianqi123 阅读(178) 评论(0) 推荐(0) 编辑
摘要: ------生成方法一pageload(object sender, eventarges e){string chkCode = string.Empty; //颜色列表,用于验证码、噪线、噪点 Color[] color = { Color.Black, Color.Red, Color.Blu... 阅读全文
posted @ 2015-08-16 00:02 tianqi123 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 一、什么是事务?能够保证数据一致的代码控制。它要么执行提交,要么回滚到事务的初始状态。二、事务的四大特性:ACIDA - 原子性.——事务不可折开,要么都执行,要么都回滚,无中间状态。C - 一致性.——数据前后要一致。I - 隔离性.——事务在执行的过程中是不许外界干扰的。D - 持久性.——存在... 阅读全文
posted @ 2015-08-14 17:09 tianqi123 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 一、什么是触发器?一段SQL代码,挂到某个表的某个增、删、改的操作上。当这个表执行相应的操作时,就会触发这段相应的SQL代码。触发器与存储过程的区别:1.存储过程是独立于表存在的,触发器需要依附某个表的某个操作。2.存储过程需要使用名称去调用才能执行,触发器则在表的操作过程中自动被触发调用。二、触发... 阅读全文
posted @ 2015-08-14 17:08 tianqi123 阅读(133) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页