自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(48)
  • 收藏
  • 关注

原创 jquery 监听事件

$(document).ready(function() {})   这就是一个事件,他代表,当页面加载后,你点击页面上,所有按钮时,就会激发你所写在function当中的事件。例如:这个可以用在登录或注册上边,点击按钮时,出现不能为空或者是别的什么内容。

2012-08-02 11:36:14 502

原创 web.config 重写

这是我最近接触的,希望能给大家带来好处!  首先,配置节点,中间添加节点有name属性type属性中写这个Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter。  然后,在中间添加。在中添加name属性,type属性(和上边差不多)Inte

2012-07-19 11:20:35 525

原创 学会“调试”VS

在写程序当中,避免不了会出现错误,但是有时候出现错误,却不知道在什么地方,这样我们可以先调试一下。    1、 如果你没有在iis上发布,那就直接在程序上调试,设置上断点,然后点击调试按钮。    2、如果你是在iis上发布的,那就不一样了,首先也是先设置断点,然后点击调试—>附加到进程—>w3wp.exe(双击)之后刷新页面,进行调试。

2012-07-18 16:15:51 314

原创 配置web.config

web.config中的一些配置,在appsettings中add方法,用key和value,例如:虽然没多深奥但是,只是在于积累吗,这是我这段时间学的!需要的看一下。

2012-07-18 15:40:29 275

原创 挺快的

一眨眼,两个月没写博客,真快啊!可能是这段时间比较忙吧!不过接下来我会写的!大家多支持

2012-07-18 15:35:36 349

原创 三层架构Excel导入数据库

using (Stream stream = File.Open("D:\\10级net3班信息表.xls", FileMode.Open, FileAccess.Read))//建立流,指向要读取的文件            {                HSSFWorkbook workbook = new HSSFWorkbook(stream);

2012-05-17 16:59:39 734

原创 jquery 注册验证

$(document).ready(function () {           $.formValidator.initConfig({ formid: "form1", onerror: function (msg) { alert(msg); } })           $("#email").formValidator({ onshow: "请输入注册邮箱(E_mail)",

2012-04-12 20:37:56 527

原创 ajax实现分页

<asp:GridView ID="GridView1" runat="server" Height="167px" Width="1000px"            AutoGenerateColumns="False">

2012-04-06 20:39:01 277

原创 jquery实现放大镜

rel="adjustX: -100, adjustY:40">                                             rel="useZoom: 'zoom1', smallImage: 'images/small1.jpg' ">                                 rel="useZoom: '

2012-03-19 19:56:22 378

原创 用JQuery改变照片透明度

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">                    $(function () {            $('input:eq(1)').bind('click', function () {

2012-03-15 20:31:46 2556

原创 jqeury 图片浏览

http://www.w3.org/TR/html4/strict.dtd">仿腾讯可全屏图片展示jQuery代码body {margin:50px 0px; padding:0px; background-color: #000000;color: #ffffff;}#content {width:620px; margin:0px auto;}#desc {marg

2012-03-14 20:38:23 550

原创 图片显示和复选框全选并删除

.style1        {            width: 32%;        }        .imgclass{ position:absolute; border:solid 1px #eee; width:200px; height:350px; display:none;}                    $(function ()

2012-03-13 21:05:17 794

原创 JQuery 实现二级下拉菜单

jQuery二级导航菜单    $(function () {        $('#nav li').mousemove(function () {            $(this).find('ul').slideDown("slow");        });        $('#nav li').mouseleave(function () {

2012-03-12 20:48:30 1179

原创 网页居中显示

document.write("可用宽度: ")        document.write(screen.availWidth + "")        document.write("可用高度: ")        document.write(screen.availHeight + "")        function opennew() {            v

2012-03-08 20:47:32 392

原创 js脚本

http://www.w3.org/1999/xhtml">            #mydiv    {        background-color:Lime;        display:none;        width:100px;        height:20px;        border:1px solid;        p

2012-03-07 22:04:04 400

原创 js 时间输出

在js中获取时间的语句var thedate = new Date();        //输出UTC时间        document.write(thedate + '');        //输出本地日期+时间        document.write(thedate.toLocaleString() + '');        //输出本地日期

2012-03-06 21:42:20 1971

原创 Js简易计算器

http://www.w3.org/1999/xhtml">                .style1        {            width: 23%;            height: 272px;        }        #Text1        {            width: 291px;

2012-03-05 20:18:52 380

原创 winform 登录代码

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;using Sy

2012-02-27 20:33:54 888

原创 C#时间间隔计算

C#时间间隔计算可以通过一个系统类来实现,它就是时间刻度类TimSpan类。还是用代码来说明吧//获取当前时间的刻度数TimeSpan ts1 = new TimeSpan(DateTime.Now.Ticks); //你的代码或者其他操作。。。。。。。。TimeSpan ts2 = new TimeSpan(DateTime.Now.Ticks); TimeSpa

2012-02-23 20:39:25 438

原创 完善登录以及数字统计出现次数

今天有完善了登录,可以在后台查找、添加用户,当用户输错三次后在管理员的帮助下,可以解锁,或者等15秒后自动解锁。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;

2012-02-22 21:28:04 413

原创 第二天完善登录

今天把登录功能完善了,老师在课堂上讲了很多,但是有时候听起来就是蒙,没办法只能下去自己学了,实在是不懂了再问吧!毕竟现在是练习自己的自主能力的,不能什么都依靠别人,对吧。       using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;usin

2012-02-21 21:01:10 322

原创 开学上课的第一天

今天是开学的第一天上课,第一个作业就摸不到头,哎呀,,,过了个寒假,把人都过傻了,这样可不行啊!我得马上适应过来啊!不然这都要找工作了,还是这样头晕,整理好心态梳理好心情,迎接明天的到来吧!希望大家像我这样的要调整过来啊!GO加油!!!        添加.config文件。        在config文件里写上如下                        At

2012-02-20 20:50:42 341

原创 简体转换

将以下代码保存为fj.htm,就可以使用了。"http://www.w3.org/TR/html4/loose.dtd">汉字简体繁体转换  http://www.ip138.com>function copy(ob) { var obj=findObj(ob); if (obj) {  obj.select();js=obj.createTextRange

2011-11-30 20:40:37 9235

原创 TreeView

private void bindTree()    {        DataTable dt = this.GetTreeData();        this.FillNode(dt, null);    }    private void FillNode(DataTable dt, TreeNode node)    {        DataView dv

2011-11-29 21:09:31 595

原创 repeater控件

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">                                    onitemcommand="Repeater1_ItemCommand">

2011-11-28 21:39:31 304

原创 分页按钮代码

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Configuration;using System.Data.SqlClien

2011-11-24 20:58:45 354

原创 Gridview删除时弹出小对话框

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data;public partial class _Default : Sys

2011-11-23 20:01:59 508

原创 student 类库

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Configuration;using System.Data;using System.Data.SqlClient;using System.Web.UI.WebControls;

2011-11-22 19:55:26 289

原创 数据绑定

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;public partial class _Default : System.Web.UI.Page{

2011-11-21 21:33:00 232

原创 生成随机数

//获取随机数字 b.htmlfunction getran(){    var ran =document.cookie;    var ran1=ran.split(";");    for(var i=0;i    {       var index=ran1[i].indexOf("GetNum=");       if(index==1)

2011-11-16 20:09:40 265

原创 二级菜单

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml" >     通用的二级菜单         #menu     {         width:300px;         margin:auto;     } #div1

2011-11-15 20:43:11 396

原创 注册登录

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;public partial class zhuc

2011-11-14 21:03:12 433

原创 动态生成表

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Data;

2011-11-10 21:16:13 1250

原创 实现用户验证

今天学的是成员资格管理                                   enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="false"             maxInvalidP

2011-11-09 21:02:35 249

原创 泛型举例

#region 泛型方法        int a = 10;        int b = 20;        this.Swap(ref a, ref b);        //Swap(ref a,ref b);        Response.Write(string.Format("a:{0};b:{1}", a, b));  public void Swap(

2011-11-08 20:31:12 352

原创 System.Collections命名空间

#region hashtable        Person zhang = new Person("张", "三");        Person li = new Person("李", "四");        Person wang = new Person("王", "五");        Hashtable hash = new Hashtable();

2011-11-07 19:06:01 422

原创 设置空间皮肤

在Theme中添加theme1默认的外观模板。以下外观仅作为示例提供。1. 命名的控件外观。SkinId 的定义应唯一,因为在同一主题中不允许一个控件类型有重复的 SkinId。   2. 默认外观。未定义 SkinId。在同一主题中每个控件类型只允许有一个默认的控件外观。--%>   Theme="Theme1" Languag

2011-11-05 18:46:36 297

原创 母版页

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml">                                                Width="95px" Font-Size="Large" onclick=

2011-11-05 10:21:07 232

原创 项目开发登陆注册

我在这次做项目中,担任着注册和登录界面,首先我想大家介绍一下我的代码:this.Response.Redirect("");//这一句可实现页面的转跳!this.Response.Write("");//这一句可以实现在网页输出你所想输出的字! if (this.txtname.Text == "")  //如果用户名为空值!则执行花括号里面的!        {

2011-10-31 21:20:00 570

原创 新闻添加新功能

新闻添加_CKEditorFinder添加改为储存过程保存修改后的新闻信息    private void EditNews()    {        using (SqlConnection sqlcnn = new SqlConnection(SqlHelper.cnnstring))        {            using (SqlCommand s

2011-10-20 20:43:40 453

空空如也

空空如也

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

TA关注的人

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