- 博客(66)
- 资源 (5)
- 收藏
- 关注
原创 oracle数据库远程连接配置以及ado连接
前台: onclick="Button1_Click" /> onclick="Button2_Click" /> 后台:using System;using System.Co
2013-05-31 10:52:49
1956
原创 ajax分页
前台:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { function fun(pgindex, pgsize) {
2013-05-22 16:47:14
771
原创 ajax三级联动省市选择器
前台:http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { $.ajax({ type: "post",
2013-05-22 16:44:28
3901
原创 jq给div的.html赋值,后台.innerhtml获取不到值-原因
label在客户端会变成,他在客户端的赋值不会保存到viewstate。客户端赋完值,点击按钮将页面提交到服务器端,服务器端根据控件的ID到viewstate中找其在客户端的赋值,此时找不到label在客户端的赋值,因为提交页面时没有保存,而textbox在客户端变成<input type='text'..,的形式,这种控件客户端赋值是被保存到viewstate和页面一起提交的,所以能在服务器
2013-05-11 17:14:44
7539
原创 判断是否进球,jq插件
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> $(function () { $("#basket
2013-05-09 11:17:48
709
原创 拖拽删除-jq插件
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> #mydiv{ width:900px; background-color:#444;}
2013-05-09 10:08:11
1069
原创 ashx如何用session(验证码)
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.SessionState;//这是在.ashx 中引用session 的必备条件之一namespace 优快云{ /// /// yzm 的摘要说明
2013-05-08 19:47:57
848
原创 滑动门导航条
滑动门导航条代码如下:要注意background-position的设置,原理是a的鼠标经过背景改变和 #navi_ul li a:hover span的背景改变 博客专栏 博客专家 热门文章 排行榜 css:#navi_ul li{ float:left; list-style:none; margin-left:10px; m
2013-05-08 19:47:06
1060
原创 javascript中可用的编码解码函数,有如下的组合:
javascript中可用的编码解码函数,有如下的组合: escape(string); unescape(string);encodeURI(string); decodeURI(string);encodeURIComponent(string); decodeURIComponent(string);他们之间的区别为:escape/unescape: 以1
2013-05-08 19:44:56
833
原创 jquery-ajax智能提示
$(function () { //var htmlobj = $.ajax({ type: "GET", url: "jquery-ajax-智能感知.aspx?t=" + $("#sousuo").val, async: false }); //array[0] = htmlobj.responseTe
2013-05-08 19:43:41
860
原创 <Table>实现分页
前台: runat="server" Text="搜索" onclick="Button3_Click" /> runat="server" Text="下一页" onclick="Button2_Click" />
2013-03-13 17:19:07
3462
原创 dropdownlist 启用了autopostback但是不执行selectedindexchanged事件
原因很简单,就是因为dropdownlist设置了相同的value值。
2013-01-07 14:05:59
967
原创 http错误代码大全
http错误代码含义中英文对照 Http错误代码含义中文 概要 当用户试图通过 HTTP 或文件传输协议 (FTP) 访问一台正在运行 Internet 信息服务(IIS) 的服务器上的内容时,IIS 返回一个表示该请求的状态的数字代码。该状态代码记录在IIS 日志中,同时也可能在 Web 浏览器或 FTP 客户端显示。状态代码可以指明具体请求是否已
2013-01-03 19:28:59
888
原创 ASP.NET Web.config配置文件的基本使用方法
xmlversion="1.0"?>注意: 除了手动编辑此文件以外,您还可以使用 Web 管理工具来配置应用程序的设置。可以使用 Visual Studio 中的“网站”->“Asp.Net 配置”选项。设置和注释的完整列表在 machine.config.comments 中,该文件通常位于 "Windows"Microsoft.Net"Framework"v2.x"Config 中
2013-01-02 21:37:30
705
原创 Errore HTTP 404.2 - Not Found" IIS 7.5 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理
如题,这个错误google时一大堆各种各样的解决办法,但具体原因就没怎么详细介绍,404.2就一个http status code, 在msdn上说:404.2 - ISAPI or CGI restriction 即IIS里的“ISAPI 或CGI 限制” 的配置有问题, “ISAPI” 是供IIS加载和调用的DLL, 如果没配置相关的ISAPI,就无法正确地解释网页的内
2013-01-02 21:36:36
389
原创 HttpApplication,HttpModule,HttpContext及Asp.Net页生命周期
IIS在接到一个新的http请求后,最终会调用asp.net_isapi.dll的ISAPI扩展(特指IIS6.0环境,iis7.0的应用程序池默认为集成方式,相对有所变化),然后传递到httpRuntime Pipe(http运行时管道),Asp.Net这时才开始运行(即HttpRunTime是Asp.Net真正的入口),HttpRunTime会为每个asp.net应用自动创建一个HttpApp
2013-01-01 14:35:33
449
原创 ashx的验证码
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Drawing;using System.IO;using System.Web.SessionState;//1.添加引用namespace gdi{ ///
2012-12-26 16:01:14
666
原创 读取xml文件内容_计算节点数量
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;namespace Ado_upper{ public p
2012-12-20 19:57:01
4037
原创 xml数据写入到输出流中
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Xml;namespace Ado_upper{ public p
2012-12-20 19:56:04
1237
原创 c#读取xml内容保定到dropdownlist
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/1999/xhtml"> 书名 作者
2012-12-20 19:48:17
1764
原创 数据绑定版省市选择器
aspx: onselectedindexchanged="DropDownList1_SelectedIndexChanged"> aspx.csusing System;usin
2012-11-29 17:36:05
585
原创 触发器的定义与使用
--每次插入数据时候都把数据值打印出来create trigger tri_student_afteron student after insertasbegindeclare @sClassId intdeclare @SName nvarchar(50)declare @sAge intselect @sClassId=sClassId,@SName=sName
2012-11-14 19:02:37
682
原创 游标的建立
--使用游标--游标的定义--(1)定义declare cur_student cursor fast_forward--游标快速向前for select * from student--基于返回的结果集--2(打开)open cur_student--3操作fetch next from cur_student--向下移动一条游标while @@fetch_s
2012-11-14 18:54:23
591
原创 asp中实现sql事务登录_增删改查
web.config 有关如何配置 ASP.NET 应用程序的详细消息,请访问 http://go.microsoft.com/fwlink/?LinkId=169433 --> login.aspx: 用户名
2012-11-13 20:08:41
2682
原创 利用sql存储过程显示内容到dataGridView
app.config ClassModel.cs:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication1{ clas
2012-11-13 19:54:45
900
原创 dataGridView分页显示数据
app.config: ClassModel_student.cs:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace WindowsFormsApplication1{
2012-11-13 19:52:02
669
原创 ADO中使用储存过程_sql事务
app.config c#: private void button3_Click(object sender, EventArgs e) { string connstr= ConfigurationManager.ConnectionStrings["connstr3"].C
2012-11-13 19:46:53
485
原创 ADO实现sql事务
app.config: c#using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;using System.Configuration;namespa
2012-11-13 19:40:20
729
原创 sql语句小练习
1计算100天后病毒发作的日期。print convert(varchar(50),dateadd(day,100,getdate()),111)2凡是入职一年以上的员工,工资增加500¥update employeeset fsalary=fsalary+500where datediff(yy,empintime,GETDATE())=13计算1975年10月5
2012-11-07 16:43:31
895
原创 sql的insert语句自动生成器_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;using Na
2012-10-24 19:17:39
4948
原创 页面中传递数据的几种方法
页面中传递数据的三种方法:cookies,session,application,还有一种把当前页面中的数据直接传递给另一个页面:页面1的aspx:@Page Language="C#"AutoEventWireup="true"CodeBehind="page1.aspx.cs"Inherits="跨页面传递.page1"%> DOCTYPEhtml
2012-10-17 19:48:20
1024
原创 .net版本聊天室源码
聊天室.aspx: #ltmessage { height: 189px; } 在线聊天:人 请输入你的姓名:<asp:TextBox ID="name" runat="s
2012-10-16 15:10:44
2699
原创 后台获取前台runat=server的select的值(省市选择器)
这样写:前台;HTML codeli> asp:Label ID="Lpro" runat="server" Text="省份:" CssClass="fixWidth">asp:Label> select id="Select1" name="Select1" runat="server" oncha
2012-10-06 15:47:37
4933
原创 通用版登录login_委托
using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using System.Linq;using System.Text;using System.Windows.Forms;namespac
2012-09-14 17:11:11
687
原创 大写日期转换成阿拉伯数字的算法
using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace _911日期转换{ class Program { static void Main(string[] args) {
2012-09-12 16:25:28
1893
原创 base方法调用基类构造函数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 人类{ class person { private int age; private string name; priv
2012-09-04 17:00:50
2905
原创 new 关键字隐藏基类方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Vehicles{ class Car : Vehicle//汽车类继承车辆类 { public void Accelerate()//加速
2012-09-04 16:52:54
1749
原创 override重写基类方法
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Vehicles{ class Vehicle//车辆类 { public void StartEngine(String noiseToMakeWhenSt
2012-09-04 16:21:28
1931
原创 新学期开始了。
“漫长的暑假”过去了。今天上课发现,老师讲的都听的很模糊,直到下午自己做练习才渐渐回忆起以前的知识,新的学期又是新的开始。这一年是该拼命的时候了,昔日的学哥已经就业了。既有羡慕的眼光,也有忧虑的眼光。羡慕人家找到工作了,忧虑自己能不能找到称心的工作。我不要求一开始工资高低,但是要符合我的发展方向。这是我唯一期盼的。收下心该启程了。
2012-09-03 14:50:31
552
原创 c#运算符使用,以及装箱拆箱
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 运算符{ class Program { static void Main(string[] args) { Si
2011-12-26 21:15:01
620
Aspose.Words 17.6破解版
2017-09-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人