- 博客(13)
- 收藏
- 关注
转载 web前端页面三种弹出对话框的用法实例
三种弹出对话框的用法实例function ale(){ //这个基本没有什么说的,就是弹出一个提醒的对话框 alert("我敢保证,你现在用的是演示一");}function firm(){ //利用对话框返回的值 (true 或者 false) if(confirm("你确定你不是想点第二种?")) { //如果是true ,那么就弹出一句
2014-09-02 11:20:11
13073
转载 WEB前端页面屏蔽键盘事件
测试!!! //禁用右键、文本选择功能、复制按键 $(document).bind("contextmenu", function() { return false; }); $(document).bind("selectstart", function() { return false; }); //按键时提示警告 $(document).ke
2014-09-02 11:15:14
3494
转载 实用类
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;using System.Text.RegularExpressions;namespace Common{ public enum Le
2014-09-02 11:10:39
372
转载 将DataTable转换成泛型集合IList<>
/// /// 将DataTable转换成泛型集合IList<>/// 这是一个助手类/// /// /// 单表查询结果转换成泛型集合 /// /// 泛型集合类型 /// 查询结果DataTable /// 以实体类为元素的泛型集合 public static IList convertToList(DataTable dt) where T : new() {
2014-09-02 11:09:12
593
转载 Form身份验证
--后台//为提供的用户名创建一个身份验证票证,并将该票证添加到响应的 Cookie 集合中或 URL 中(如果使用的是无 Cookie 身份验证)。 // 参数: // userName: // 已验证的用户的名称。 这不必映射到 Windows 帐户。 // // createPe
2014-09-02 10:48:28
414
转载 判断数据库表是否存在
if exists ( select * from INFORMATION_SCHEMA.tables where table_name = '课案内容表') --判断表是否存在 drop table [dbo].[课案内容表] --删除表定义及该表的所有数据、索引、触发器、约束和权限规范go
2014-09-02 10:41:52
564
转载 jQuery简单实现动态验证文本框
$(function () { $(".inp") .each(function () { var oldVal = $(this).val(); $(this) .css({ "color": "#888" })
2014-09-02 10:36:52
846
转载 从web.config里面取出数据库连接字符串
第一种:取连接字符串private static string connString = System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SqlConnStr"].ConnectionString;web.config文件:加在后面 第
2014-09-02 10:29:18
602
转载 SQL语法的一些基本应用
select '(列/聚合函数/子查询(单列))' from '(表/子查询(表))' --1. where (列条件 (关系运算符) (条件值/子查询(单列))) --2. where (列条件 in (一组范围值/子查询(单列))) --3. exists (子查询) --比较 group by 列 --对某一列进行分组 having 聚合函数 > 1 --分组后再查询
2014-09-02 10:24:55
450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人