![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C#
文章平均质量分 69
商炳奇
商炳奇
展开
-
将数据绑到gridview然后导成excel
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data .SqlClient ;using System.Data ;原创 2014-02-20 17:31:17 · 1109 阅读 · 0 评论 -
JS对img进行操作
var i = 1; var n; function showImg() { if (document.getElementById('img').getAttribute("src") == "images/1.jpg") { document.getElementById('img').setAttribute("s原创 2013-04-16 19:09:45 · 2340 阅读 · 0 评论 -
JS写九九乘法表
function show(){ for (var i = 1; i for (var j = 1; j document.getElementById('divmain').innerHTML += j + "*" +i + "=" + i * j + "\t";原创 2013-04-16 18:47:14 · 653 阅读 · 0 评论 -
JS写Cookie
function writeCookie() { var today = new Date(); today.setDate(today.getDate() + 1); document.cookie = 'userName=商商;Expires=' + today.toGMTString();//js进行设置过期时间时原创 2013-04-16 19:05:43 · 1197 阅读 · 0 评论 -
JS写跑马灯
function show() { var info = document.getElementById('Text1'); info.value = info.value.substr(1) + info.value[0]; } setInterval(show, 50原创 2013-04-16 18:56:32 · 704 阅读 · 0 评论 -
Cookie练习
后台代码: protected void Button1_Click(object sender, EventArgs e) { //特殊加密算法 HttpCookie cookie = new HttpCookie("name"); cookie.Value = Encode(原创 2013-04-16 19:02:08 · 661 阅读 · 0 评论 -
jQuery判断密码强度
.qiang{background:url(/images/pas4.JPG) no-repeat;width:150px;height:40px;float:left;} .zhong{background:url(/images/pas3.JPG) no-repeat;width:150px;height:40px;float:left;} .ruo{background:原创 2013-04-23 20:24:46 · 1417 阅读 · 0 评论 -
jQuery判断邮箱
$(function () { var bool = false; $('#Email').focus(function () { if (bool == false) { $('#Email').val(''); } }) $('#Email').blur(function () {原创 2013-04-23 20:21:30 · 1399 阅读 · 0 评论 -
jQuery实现图片前进后退
img { width:300px;height:300px; } a { text-decoration:none; } $(function () { $('img原创 2013-04-23 20:15:38 · 881 阅读 · 0 评论 -
jQuery写日历
var c = new Calendar("c"); document.write(c); 普通调用: 按钮调用: id="button" type="button" onclick="c.showMoreDay = true; c原创 2013-04-22 21:50:00 · 930 阅读 · 0 评论 -
jQuery对节点进行操作
$(function () { //如果clone()方法的参数为true,则此元素的事件也会被复制,如果为空(默认为false),则事件不会被复制 $('#img1').click(function () { $(this).clone(true).appendTo('div');原创 2013-04-22 21:39:03 · 569 阅读 · 0 评论 -
jQuery全选、取消全选、反选
img { width:50px; height:50px; } table { width:600px; height:400px; } table tr td{ border:solid 1px #eee;}原创 2013-04-22 21:37:01 · 677 阅读 · 0 评论 -
jQuery实现变色
function backgorundColor(i) { // this.document.body.style.backgroundColor = i; // this.document.getElementById('div1').style.backgroundColor= i; thi原创 2013-04-22 21:33:30 · 924 阅读 · 0 评论 -
博客园左侧导航jQuery+Css
#titleDiv { width: 180px;height: 30px;margin: 0px; } #titleDiv_Bj { background: url('images/site_cate_title_bg.png') no-repeat;width: 180p原创 2013-04-22 21:18:12 · 758 阅读 · 0 评论 -
对GridView的行加颜色并弹出Kindeditor
前台代码: function tureDelete() { if (confirm('真的要删除吗?') == false) { return false;} } function showdiv() { docume原创 2013-04-09 20:32:48 · 2185 阅读 · 0 评论 -
对Dictionary的理解
当你把字典声明的静态时,关闭网页后,你存储的数据仍然会存储在内存中,例如:前台代码: 后台代码: static Dictionary di = new Dictionary(); protect原创 2013-04-09 20:18:11 · 708 阅读 · 0 评论 -
对ListBox的添加移除操作
前台代码: tom jion j l k 后台代码: protected vo原创 2013-04-09 19:59:08 · 2195 阅读 · 0 评论 -
动态生成table并实现分页效果
前台代码: 搜索字:原创 2013-04-09 19:48:36 · 1348 阅读 · 0 评论 -
JS替换节点
function createNode() { var pNode = document.createElement('p'); var tNode = document.createTextNode('烟花三月下杨州'); pNode.appendChild(tNode); document.原创 2013-04-16 19:18:20 · 2222 阅读 · 0 评论 -
jQuery写注册页
$(function () { $("#btnSubmit").click(function () { var txtName = $('#txtName').val(); var gender = $('#gender').is(':checked') ? '男' : '女';原创 2013-04-18 14:38:05 · 610 阅读 · 0 评论 -
jQuery写隔行变色
body { font-size:12px;text-align:center; } #tbStu { width:260px;border:1px solid #666;background-color:#eee; } #tbStu tr {原创 2013-04-18 14:42:58 · 626 阅读 · 0 评论 -
C#获得当前时间
http://blog.163.com/ljq086@126/blog/static/549639712010112921658843/我们可以通过使用DataTime这个类来获取当前的时间。通过调用类中的各种方法我们可以获取不同的时间:如:日期(2008-09-04)、时间(12:12:12)、日期+时间(2008-09-04 12:11:10)等。//获取日期+时间DateTi转载 2013-12-19 15:52:45 · 916 阅读 · 0 评论 -
无刷新三级联动
$(function () { $.ajax({ type: "post", contentType: "application/json", url: "WebService1.asmx/GetListProvince", Data:原创 2013-05-28 10:36:31 · 699 阅读 · 0 评论 -
list写三级联动
前台: 地址: onselectedindexchanged="dropProvince_SelectedIndexChanged">原创 2013-05-28 10:32:53 · 891 阅读 · 0 评论 -
仿google分布效果
.btnCss { text-decoration: none; color: Blue; border:none; cursor:pointer; } .btnBg { text-decoration: none原创 2013-05-28 10:24:04 · 688 阅读 · 0 评论 -
输出电脑CPU温度
在控制台输出 using System.Management; 添加引用 在该解决方案下的引用右击添加 System.Management;Double CPUtprt = 0; System.Management.ManagementObjectSearcher mos = new System.Management.Mana原创 2013-05-22 11:12:54 · 716 阅读 · 0 评论 -
jQuery写fadeTo方法
<!--.imgclass {width:300px; height:300px; border:solid 1px red}--> .imgclass{ width:300px; height:300px; border:solid 1px red;} $(function (原创 2013-05-06 20:21:47 · 823 阅读 · 0 评论 -
jQuery的slideToggle方法
.imgclass{ width:300px; height:300px; border:solid 1px red;} $(function () { $('#Button1').bind('click', function () { $('img').slideUp(2000);原创 2013-05-06 20:17:17 · 749 阅读 · 0 评论 -
jQuery实现动画效果
table{border:1px solid #666;} table td{border:1px solid #eee;width:200px;height:200px;} img{width:200px;height:200px;border:none;position:relative;} $(fu原创 2013-05-06 20:10:12 · 741 阅读 · 0 评论 -
win8 Downlod mp3
前台代码:原创 2013-04-19 23:43:33 · 1229 阅读 · 0 评论 -
jQuery动态创建元素
$(function () { $('#btnCreateP').click(function () { var createP = '白日依山尽黄河入海流欲穷千里目更上一层楼'; $('div').append(createP); }) $('#btn原创 2013-04-19 23:34:10 · 951 阅读 · 0 评论 -
jQuery实现简单登陆判断
$('#txtUserName').focus(function () { $('#txtUserName').val(''); }) $('#txtPassWord').focus(function () { $('#txtPassWord').val('');原创 2013-04-19 23:37:23 · 1318 阅读 · 0 评论 -
jQuery弹出select选择
$(function () { $('#btn').click(function () { alert($('#s option:selected').val()); }) }) 商原创 2013-04-19 23:36:16 · 1258 阅读 · 0 评论 -
Xaml选择要保存文件的类型
前台代码: 后台代码:using System;using System.Collections.Generic;using System.IO;using System.Linq;using Windows.Foundation;using Windows.Fou原创 2013-04-19 23:47:06 · 987 阅读 · 0 评论 -
wp7相册
wp7实现动态相册,快来看看吧!在我的资源中!!!!原创 2013-04-25 21:28:38 · 594 阅读 · 0 评论 -
jQuery层次选择器
table tr td { width:240px;height:240px; } .clasImg { width:500px;height:200px; } $(function () { $('#Button1').cl原创 2013-04-18 14:52:21 · 605 阅读 · 0 评论 -
jQuery写超链接
.divFrame { width:260px;border:1px solid #666;font-size:10pt; } .divTitle { background-color:#eee;padding:5px; } .divContent { padding:原创 2013-04-18 14:45:42 · 1150 阅读 · 0 评论 -
jQuery实现小动画
//展开图片或收缩图片 $(function () { $('#Button3').click(function () { $('#img').show(5000); }) $('#Button4').click(function () {原创 2013-04-18 14:49:13 · 600 阅读 · 0 评论 -
对GridView实现分页
前台代码:原创 2013-04-09 20:04:07 · 850 阅读 · 0 评论 -
泛型通用函数的一些特殊问题的解决方法
首先先感谢MSDN中的一些优秀的外国友人精彩的回答,我从那里也受益良多,写此博文。 自从2.0版本的net framework推出之后泛型(Generic)得到了广泛好评。它不必像object类型一样性能上因为“拆箱”或者“装箱”得到损失,同时在编译语法检测阶段就可以实时检测出传入或者传出的类型是否符合特定条件。 但“金无赤足,人无完人”——在我们享受这些幸福编程的同时,泛型自身类型的转载 2013-02-27 20:03:09 · 416 阅读 · 0 评论