上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页
具体步骤:1.先插入要显示打字效果的容器。<span id="demo"></span>2.加入脚本。<script defer>var text="JavaScript实现的打字效果"var delay=200var i=0function scrollit(){demo.innerText=text.slice(0,i++)+"_" if(i>text.length){ i=0 setTimeout("scrollit()",delay*10) }else setTim Read More
posted @ 2009-08-08 09:10 汉卿 Views(1763) Comments(0) Diggs(0) Edit
一,前言Cookies想必所有人都了解, 但是未必所有人都精通。本文讲解了Cookies的各方面知识, 并且提出来了最佳实践。这是笔者在日常工作中的积累和沉淀。 二,基础知识1.什么是CookiesCookie 是一小段文本信息,伴随着用户请求和页面在 Web 服务器和浏览器之间传递。Cookie 包含每次用户访问站点时 Web 应用程序都可以读取的信息。 例如,如果在用户请求站点中的页面时应用程序发送给该用户的不仅仅是一个页面,还有一个包含日期和时间的 Cookie,用户的浏览器在获得页面的同时还获得了该 Cookie,并将它存储在用户硬盘上的某个文件夹中。 以后,如果该用户再次请求您站点中 Read More
posted @ 2009-08-07 16:03 汉卿 Views(235) Comments(0) Diggs(0) Edit
介绍ASP.NET AJAX就5个控件,分别是ScriptManager、ScriptManagerProxy、UpdatePanel、UpdateProgress和Timer。先简单地过一下。关键1、ScriptManager 和ScriptManagerProxy ·一个页只能有一个ScriptManager(包含了所有脚本资源),要放到任何用到AJAX的控件的前面。 ·如果把它放到母版页,而内容页需要与其不同的配置的话,则应在内容页使用ScriptManagerProxy。 ·ScriptManager默认EnablePartialRendering=&qu Read More
posted @ 2009-08-07 15:42 汉卿 Views(618) Comments(0) Diggs(0) Edit
方法一: 在GridView的 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("onMouseOver", "SetNewColor(this);"); e.Row.Attributes.Add("onMouseOut", "SetOldColor(this);" Read More
posted @ 2009-08-07 09:54 汉卿 Views(366) Comments(0) Diggs(0) Edit
1、说明:创建数据库CREATE DATABASE database-name2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'--- 开始 备份BACKUP DATABASE pubs TO testBack4、说明:创建新表create table tabname(col1 type1 [not nu Read More
posted @ 2009-08-07 09:40 汉卿 Views(194) Comments(0) Diggs(0) Edit
在 ASP.NET 的开发中 Web 用户控件的开发和使用是一项必不可少的技术,在对这项技术的一番研究后写下了这篇随笔,不过确实担心这么初级的东东放到原创首页上会被拍砖头。1.简介2.创建 Web 用户控件3.在 Web 窗体中使用 Web 用户控件4.添加属性5.添加方法6.添加自定义事件7.控件内客户端角本访问服务器控件的方法8.代码下载1.简介 当 ASP.NET 内置的 Web 服务器控件不能满足我们开发的需要时,通过我们会创建自己的控件。而在 ASP.NET 中有两个选择: 1)用户控件:用户控件是能够在其中放置标记和 Web 服务器控件的容器。然后,可以将用户控件作为一个单元对待. Read More
posted @ 2009-08-06 15:18 汉卿 Views(7229) Comments(1) Diggs(0) Edit
虽然 Fiddler 功能强大,但这里介绍这款软件主要是用于今后 ASP.NET AJAX 调试,所以并不非常具体地介绍其应用,Visual Studio 2005 用户还可以参见 MSDN 的演练:创建编码的 Web 测试。 Fiddler 是微软出品的一款 Web 调试代理软件,它记录您的电脑和 Internet 之间的 HTTP(S) 数据流。Fiddler 允许你查看所有的 HTTP(S) 数据流,并且可以设置断点,改变请求和回应的数据。 Fiddler 是一款免费软件,可以对来自任意浏览器的访问的调试。 Fiddler 目前可以调试并解密 HTTPS 数据流。 下载 Fiddler Read More
posted @ 2009-08-06 11:02 汉卿 Views(304) Comments(0) Diggs(0) Edit
二.下面讲述6种常用集合 1.ArrayList类 using System;using System.Collections.Generic;using System.Text;using System.Collections;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ArrayList al = new ArrayList(); al.Add(100);//单个添加 foreach (int number in new int[6] { 9, 3, 7, 2, 4, 8 Read More
posted @ 2009-08-05 15:19 汉卿 Views(259) Comments(0) Diggs(0) Edit
DataGridView的常用用法 //读取表Supplier并绑定到GridView中 private void BindGvSupplier() ...{ OracleConnection conn = this.Conn(); OracleCommand cmd = new OracleCommand( "select * from Supplier ", conn); OracleDataAdapter sda = new OracleDataAdapter(cmd); DataSet ds = new DataSet(); sda.Fill(ds, "S Read More
posted @ 2009-08-05 13:54 汉卿 Views(853) Comments(0) Diggs(0) Edit
RegisterStartupScript(key, script)RegisterClientScriptBlock(key, script) 这两个方法的作用都是从前台向后台写脚本,且都接受两个字符串作为输入。第二个参数 script 是要插入到页面中的客户端脚本,包括 <script> 的起始标记和终止标记。第一个参数 key 是插入的客户端脚本的唯一标识符。 这两个方法唯一的不同之处在于从“何处”发送脚本块。RegisterClientScriptBlock() 在 Web 窗体的开始处(紧接着 <form runat="server"> 标识之后)发送脚本块,而 Read More
posted @ 2009-08-05 13:36 汉卿 Views(179) Comments(0) Diggs(0) Edit
上一页 1 ··· 7 8 9 10 11 12 13 14 15 下一页