自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 资源 (2)
  • 收藏
  • 关注

原创 js判断浏览器

IE      只有IE支持创建ActiveX控件,因此她有一个其他浏览器没有的东西,就是ActiveXObject函数。只要判断window对象存在ActiveXObject函数,就可以明确判断出当前浏览器是IE。而IE各个版本典型的userAgent如下:        Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0)      

2010-05-07 10:36:00 2149

转载 浏览器字体大小问题

谷歌浏览器字体为什么与IE8显示不一样    Google Chrome浏览器字体为什么与IE8显示不一样,在调试页面中,发现了一个问题,我在Google Chrome浏览器下调试页面,我有一段文字设置的font-size是

2010-05-07 09:29:00 7990 1

原创 html text失去焦点与得到焦点的事件

onclick="if(value==your email address){value=}"  单击的时候onblur="if(value==){value=your email address}" 失去焦点的时候onfocus="" 得到焦点的时候

2010-05-07 09:28:00 4405

原创 html text失去焦点与得到焦点的事件

onclick="if(value==your email address){value=}"  单击的时候onblur="if(value==){value=your email address}" 失去焦点的时候onfocus="" 得到焦点的时候

2010-05-06 17:01:00 42634 1

原创 Html 文字滚动

滚动字幕会让很多人感到兴奋,特别是第一次使用滚动字幕时,会爱不释手。现在做一个详细的方案,让你更全面地了解一下。  滚动字幕在FrontPage的组件里有,但是FrontPage这个软件只能支持单行文字,一出现多行文字它就无能为力了,而且它只能支持一行滚动!(如果出现只能滚动一行的情况,解决办法是把这段代码嵌入到JavaScript的document.write里面,请看下面例的详细说明) Dre

2010-05-06 16:59:00 2026

转载 Html 文字滚动

滚动字幕会让很多人感到兴奋,特别是第一次使用滚动字幕时,会爱不释手。现在做一个详细的方案,让你更全面地了解一下。  滚动字幕在FrontPage的组件里有,但是FrontPage这个软件只能支持单行文字,一出现多行文字它就无能为力了,而且它只能支持一行滚动!(如果出现只能滚动一行的情况,解决办法是把这段代码嵌入到JavaScript的document.write里面,请看下面例的详细说明) Dre

2010-05-06 15:03:00 704

原创 SQL消除空格列

 LTRIM,RTRIM能消除前后空格:select LTRIM(RTRIM(XXX)) from abc。update 表名 set 字段名=LTRIM(RTRIM(字段名))

2009-11-26 17:11:00 652

原创 winfrom treeview的绑定

 private void CreateTree(TreeNodeCollection tns, int ParentId, List iL)        {            List iLNodes = iL.Where(c => c.ParentId == ParentId).ToList();            foreach (StorageGrid sg in iLNodes

2009-11-19 16:32:00 938

原创 树型控件的使用

 DictionaryDAL.cs里的代码 using Microsoft.ApplicationBlocks.Data; using System.Data.SqlClient; using System.Data; using System; #region DictionaryDAL /// /// This object represents the properties and met

2009-11-16 11:05:00 645

原创 C#实现文字移动

 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace label{    p

2009-10-28 17:18:00 1700

原创 C#中点击窗体右上角的X然后询问是否关闭,是就关闭,不是就什么都不做

 private void TestForm_FormClosing(object sender, FormClosingEventArgs e) { if (MessageBox.Show("确定要关闭?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { e.Cancel = fals

2009-10-17 21:52:00 3314 2

原创 datagridview数据绑定

         SqlConnection conn = new SqlConnection();        conn.ConnectionString = "server=(local);uid=sa;pwd=sa;database=DatabaseName";        SqlCommand cmd = new SqlCommand();        cmd.CommandText

2009-09-23 12:28:00 502

原创 将datagridview里的值增加到数据库里面

 private void button1_Click(object sender, EventArgs e)        {            int i = 1;            int j = dataGridView1.Rows.Count;            foreach (DataGridViewRow row in this.dataGridView1.Rows) 

2009-09-23 12:25:00 613

翻译 在ASP.NET中显示进度条

using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;usi

2009-06-03 17:01:00 542

原创 上传图片

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using

2009-05-31 13:41:00 416

原创 datalist的数据导入到Excel中

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using

2009-05-25 21:24:00 892

转载 AspNetPager使用方法

AspNetPager使用方法不同于DataGrid控件,AspNetPager分页控件本身并不显示任何数据,而只显示页导航元素,数据在页面上的显示方式与该控件无关。该控件可以为DataGrid、DataList、Repeater以及自定义控件进行分页,配合Sql存储过程,分页性能较使用DataGrid分页有明显提升,尤其是当数据量大时性能可提升数倍!     AspNetPager

2009-05-24 20:49:00 10124 8

原创 单击gridview控件外部的一个按钮,获取gridview中的一列数据,获得的数据插入到另一个表中

 using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using

2009-05-11 22:02:00 4282 1

原创 隐藏datalist里面的Panel控件

using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.W

2009-05-10 00:39:00 1271

翻译 div+css的几种常用的布局

CSS常用布局实例一列单行一列  代码:body { margin: 0px;   padding: 0px;  text-align: center;  }#content {  margin-left:auto;  margin-right:auto;  width: 400px;  }两行一列 代码:body {  margin: 0px;   padding: 0px;

2009-05-07 20:29:00 2080

原创 Repeater的分页代码

 Default.aspx.cs里的代码 using System; using System.Configuration; using System.Data; using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls;

2009-05-06 13:14:00 448

原创 div+css入门

 查看文章  Div+CSS布局入门教程全集2008-12-08 19:59简简单单space之Div+CSS布局入门教程全集一、页面布局与规划好久没有认真写点东西了,想起最近这些时间经常有朋友问到我有关于DIV+CSS布局的问题,其实归根结底还是由于没有入门造成的。那么接下来的这篇文章就带领大家入门吧..

2009-05-05 13:12:00 444

原创 自定义用户空间,日期的选择

 mydate1l.ascx.cs里的代码protected void Page_Load(object sender, EventArgs e)    {        for (int i = 1950; i         {            ddlyear.Items.Add(i.ToString());                }        for (int j= 1

2009-04-28 11:53:00 444

原创 HTML中定义CSS样式的三中方式

  1:在head标签中加载一个CSS文件示例: rel="stylesheet" type="text/css" href="style.css" />以下是style.css的内容,此例使用了link标签.abbr {     font-size:12px; } .text10pxwhite{     font-size:10px;     

2009-04-25 15:00:00 857

FreeTextBox源文件

FreeTextBox.textFreeTextBox.text FreeTextBox.text FreeTextBox.text

2009-05-11

TreeView的绑定及查询,增加

if (!IsPostBack) { DataSet ds = DictionaryDAL.GetDictionaryDataSet(); TreeBind(ds, "0", TreeView1.Nodes); }

2009-05-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除