- 博客(128)
- 资源 (34)
- 问答 (41)
- 收藏
- 关注
原创 Arraylist实现原理
<span style="font-family: function() { var id = (this._style >> 24) & 0xff; color: #000000; font-size: medium;">Arraylist实现原理 ArrayList是使用最频繁的一个集合类。其实现原理可以用如下方式来解释: 首先,A
2010-01-30 14:44:00
2186
1
原创 在C#中使用水晶报表
<span style="font-size: medium; color: #000000; font-family: function() { var id = (this._style >> 24) & 0xff;">在C#中使用水晶报表 给报表配置数据源有两种方式,一种是利用报表专家完成数据源的配置和设计。另一种是通过数据库专家配置。这里将介绍用数据库专家配置
2009-04-08 09:07:00
1833
原创 数据结构(C语言版)-单链表
本程序实现了单链表的创建,结点的插入,删除,合并两个有序链表,求两个有序链表的交集,求两个有序链表的并集,求两个有序链表的差。代码在VS2005编译下通过。有不当之处,不吝指教。QQ:381834158// test2.cpp : 定义控制台应用程序的入口点。//#include#include #include #include "stdafx.h"#include #include #incl
2009-03-05 22:38:00
1813
2
原创 用fwrite()创建文件
void writeFile(){ char *p; char input[100]; int i=0; while((input[i]=getchar())!=/n) i++; input[i]=/0; FILE *f; f = fopen("ok.txt","w"); fwrite(input,sizeof(char),i,f); }
2008-12-24 23:24:00
2414
原创 按日期查询数量的SQL
use [Tongxing]DECLARE @days intset @days=1000 --表示跟今天相差的天数,今天为1,一个星期内为7..select (case when iClassID=1 then 新闻 when iClassID=2 then 生活 when iClassID=3 then 军事 when iClassID=4 then 科技 when
2008-08-30 14:50:00
1408
原创 一个case查询语句的使用例子
Create proc Proc_GetConfig as select id,(case isOpen when 0 then 不开放 when 1 then 开放 end )as isOpen,(case isSearch when 0 then 不开放 when 1 then 开放 end )as isSearch from tb
2008-06-19 02:36:00
1192
原创 一个多条件查询的例子
Create proc Proc_GetASTInfo ( @keyId int, @FCId int, @keywords Nvarchar(50), @class Nvarchar(50), @degree Nvarchar(50) ) as declare @sql nvarchar(1024
2008-06-19 01:51:00
731
原创 关于Sql Server企业管理器MMC 不能打开文件的解决方法
推荐关于Sql Server企业管理器MMC 不能打开文件的解决方法打开SqlServer的企业管理器,突然出现如下错误:---------------------------Microsoft Management Console---------------------------MMC 不能打开文件 C:/Program Files/Microso
2008-06-16 02:07:00
1048
原创 SQL Server中Case的不同用法
每当列表中有一个匹配值的时候,就会调用THEN子句。因为有ELSE子句,所以任何不能匹配前面情况的值将赋给ELSE中的语句。你可以在 WHERE 子句中使用 CASE。首先让我们看一下 CASE 的语法。在一般的 SELECT 中,其语法如下: SELECT = CASE WHEN T
2008-06-15 13:39:00
654
原创 ASP.NET的三层结构指什么
为何使用N层架构? 因为每一层都可以在仅仅更改很少量的代码后,就能放到物理上不同的服务器上使用,因此结构灵活而且性能更佳。此外,每层做些什么其它层是完全看不 到的,因此更改、更新某层,都不再需要重新编译或者更改全部的层了。这是个很强大的功能。例如,如果把数据访问代码与业务逻辑层分离,当数据库服务器更改 后,你只需要更改数据访问的代码,因为业务逻辑层是不变的,因此不需要更改或者重新编译业务
2008-06-13 20:30:00
731
原创 图书管理流量统计部分
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
2008-06-11 03:42:00
788
1
原创 图书管理数据更新部份
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
2008-06-11 03:41:00
699
原创 图书管理搜索部份
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
2008-06-11 03:40:00
550
原创 图书管理图文验证部份
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
2008-06-11 03:39:00
594
原创 图书管理数据删除部份
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
2008-06-11 03:37:00
552
原创 图书管理登陆部分代码
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
2008-06-11 03:36:00
738
1
转载 Creating hints with onMouseOver and onMouseOut`
By default, when you move the mouse pointer over a hyperlink, thestatus bar displays the destination URL of the link. You can set statusin the onMouseOut and onMouseOver event handlers of a hyperlink
2008-06-08 19:00:00
636
原创 What is Application Domain?
The primary purpose of the AppDomain is to isolate an application from other applications. Win32 processes provide isolation by having distinct memory address spaces. This is effective, but it is expe
2008-06-08 04:07:00
716
翻译 JavaScript Guide(翻译连载一)
简介JavaScript是一种用于开发客户端和因特网应用程序的轻量级,基于对象的脚本语言。Netscape Navigator解释嵌入HTML页面的JavaScript语句。LiveWire使你能够创建类似于CGI(通用网关接口)的服务应用程序。
2008-06-08 00:44:00
718
原创 动态切换图片
本示例实现鼠标移动到图片上方时显示一种图片,移开后显示另一种图片。点击图片后进入另一个窗口。注意标签的位置。function Over(){ document.getElementById("b").src="img/ok.jpg"; }function Out(){ document.getElementById("b").src="img/river.JPG";}d
2008-06-07 22:45:00
740
原创 setTimeout()隔一段时间后弹出警告信息
Definition and UsageThe setTimeout() method is used to call a function or evaluate an expression after a specified number of milliseconds.Syntax s
2008-06-07 14:48:00
1655
1
转载 JavaScript onerror 事件
只要页面中出现脚步错误,就会产生 onerror 事件。如果需要利用 onerror 事件,就必须创建一个处理错误的函数。你可以把这个函数叫作 onerror 事件处理器 (onerror event handler)。这个事件处理器使用三个参数来调用:msg(错误消息)、url(发生错误的页面的 url)、line(发生错误的代码行)。语法:onerror=handleErrfunc
2008-06-07 04:20:00
1546
原创 frames分割窗口
首 先 您 必 须 告 诉 浏 览 器 您 要 开 几 个frame?这 是 由 这 个 标 签(tag)来 宣 告。rows这 项叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 成 几 列?而 cols这 项 叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 成 几行?您 也 可 以 用 很 多 组 的 tags 将 视 窗 分 割 得 更 复 杂。
2008-06-06 14:15:00
543
原创 一个模拟卡啦OK的例子
var message="图书信息" var n=0; if (document.all){ document.write() for (m=0;mdocument.write(+message.charAt(m)+) document.write() var tempref=document.all.neonlight } else document.write(message)
2008-06-06 00:27:00
596
原创 在HTML中引入CSS
在html中,引入css的方法主要有行内式、内嵌式、导入式和链接式4种 1。行内式 即在标记的style属性中设定css样式,这种方式本质上没体现出css的优势,因此不推荐使用。 2。嵌入式 在对页面中各种元素的设置集中写在和之间的,对于单个页面来说,这种方式很方便 3。导入式 导入式格式如下: @import "mystyle.css"; 4。
2008-06-05 23:46:00
3461
原创 ID选择符与class属性
在XML元素定义中,"ID"可以作为一种特殊的元素属性添加到元素名称标签中。 1."ID"的使用方法。CSS中定义如下:line{display:"block";}#d1{color:black}#d2{color:red;}#d3{color:green;}在XML可以这样使用: 好书不厌看还读,益友何妨去复来显示结果是颜色greenXML中的class属性用法与"ID"类似。引用
2008-06-05 04:09:00
836
原创 在程序中使用存储过程
使用输入参数的存储过程在ip表中插入记录并显示1.在查询分析器创建存储过程:在存储过程中,参数都位于CREATE PROC参数名之后及AS之前,并且使用@符号标识参数变量。在其后的SQL语句中可以直接使用声明的参数进行占位。CREATE PROCEDURE 存储过程名称@参数1,@参数2,@参数nASSQL语句 存储过程(1
2008-06-04 16:30:00
655
原创 声明有外鍵的表
外键(Foreign Key)先建立一个表: CREATE TABLE BookCategory( CategoryId int primary key, CategoryName nvarchar(50))再建一个表,引用外鍵CREATE TABLE BookInfo( BookId int primary key, CategoryId FOREIGN KEY REFERENCE
2008-06-04 12:24:00
520
原创 投票统计模块(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
2008-06-04 05:16:00
971
原创 显示在线人数
通过显示在线人数从而得知当前用户的数量.aspx文件代码: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 S
2008-06-04 00:04:00
896
原创 一个显示访客数的例子
.aspx文件 注(本例需要建立一个文本文件)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.
2008-06-03 21:14:00
569
原创 数据绑定到列表框并显示(asp.net)
public partial class WebForm1 : System.Web.UI.Page { static string strconn = "Data Source=localhost;database=BOOKS;integrated security=SSPI"; static SqlConnection conn = new SqlConne
2008-06-03 11:49:00
658
原创 用DataAdapter填充显示数据(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
2008-06-03 10:55:00
638
原创 用SqlDataReader显示数据(asp.net)
public partial class WebForm1 : System.Web.UI.Page { static string strconn = "Data Source=localhost;database=BOOKS;integrated security=SSPI"; static SqlConnection conn = new S
2008-06-03 09:16:00
2843
原创 访问自定义控件的私有属性
通过自定义控件的Get()和Set()方法,可以在加入用户控件的网页中访问其私有属性。1.在自定义控件加两个文本框,ID分别设为name,password。代码文件编写如下: public partial class WebUserControl1 : System.Web.UI.UserControl { protected void Page_Load(object sen
2008-06-03 03:47:00
742
echarts在ASP.NET MVC中的使用
2020-05-04
Web Api使用详解(全部实例讲解,可直接运行看效果)
2017-08-24
MvcPager无刷新分页源码(无需数据库可直接运行看效果)
2017-07-21
ASP.net MVC 基于角色的权限控制系统的实现
2017-07-11
H5调用摄像头读取二维码完整示例(含源码和引用文件,可在手机中直接使用)
2017-07-10
源码:MVC中基于表单的用户身份验证与角色授权
2017-07-08
用Datetime.now()方法时,获取的时间中间多了个数字
2025-02-12
用Datetime.now()方法时,获取的时间中间多了个数字
2025-02-12
用Magicodes.IE.Pdf导出数据列表
2025-01-24
用Magicodes.IE.Pdf导出数据列表
2025-01-24
用Magicodes.IE.Pdf导出为列表时报错
2025-01-24
动态生成多个uni-Card、actions及card-actions-item
2025-01-23
动态生成多个uni-Card、actions及card-actions-item
2025-01-23
动态生成多个uni-Card、actions及card-actions-item
2025-01-21
动态生成多个uni-Card,并在其下面动态生成多个actions
2025-01-21
在一个uni-Card下面,动态生成多个actions
2025-01-21
card-actions-item没有出来,不知错哪了
2025-01-20
在container的view下,生成多个uni-card,其中slot不固定
2025-01-20
用V-for生成多个view class="container"的card
2025-01-20
无线上网卡实现web互联
2025-01-14
web网络连接设置方法
2025-01-14
jquery中替换字符串的值
2025-01-13
jquery 能获取按钮的id但不能获取到值
2025-01-13
用jquery动态给table增加一行,其td中有一个input,但有时无法获取输入的值
2025-01-11
uniapp自适应方案
2025-01-09
用asp.net core mvc运行uniapp中的H5,并与api交互
2025-01-06
用asp.net core mvc运行uniapp中的H5
2025-01-06
uniAPP开发App使用MQTT通讯EMQX Cloud,真机调试时异常
2025-01-03
uniAPP开发小程序App使用MQTT通讯EMQX Cloud,真机调试时异常
2024-12-26
asp.net core mvc中将要注入的类,用构造函数传递使用会有问题吗
2024-12-23
复选框是自动生成的,为其绑定了勾选事件,但无法触发
2024-12-18
jquery中对动态生成的标签不会响应click事件
2024-12-18
为什么jquery的indexOf不能以s开头
2024-12-14
在c#中异步多任务并发访问的问题
2024-12-11
asp.net core mvc中取消指定任务
2024-12-10
c#多个task,cancellationToken时怎样取消指定的task?
2024-12-08
c#多个task,怎么知道取消的是哪个task?
2024-12-07
jquery点击按钮弹出模态对话框后,点击确认按钮后,对该按钮重新赋值,但界面值没有刷新
2024-12-07
jquery点击按钮弹出模态对话框后,点击确认按钮后,对该按钮重新赋值,但界面值没有刷新
2024-12-07
jquery点击按钮弹出模态对话框后,点击确认按钮后,对该按钮重新赋值,但值没有刷新
2024-12-07
c#多任务执行优化方案
2024-12-06
Quartz.NET按顺序执行多个大小嵌套的工步
2024-12-05
uniapp正式环境中通过webapi将本地数据推送到设备出现的跨域问题
2024-12-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人