- 博客(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 2111 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 1684
原创 数据结构(C语言版)-单链表
本程序实现了单链表的创建,结点的插入,删除,合并两个有序链表,求两个有序链表的交集,求两个有序链表的并集,求两个有序链表的差。代码在VS2005编译下通过。有不当之处,不吝指教。QQ:381834158// test2.cpp : 定义控制台应用程序的入口点。//#include#include #include #include "stdafx.h"#include #include #incl
2009-03-05 22:38:00 1738 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 2337
原创 按日期查询数量的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 1339
原创 一个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 1131
原创 一个多条件查询的例子
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 685
原创 关于Sql Server企业管理器MMC 不能打开文件的解决方法
推荐关于Sql Server企业管理器MMC 不能打开文件的解决方法打开SqlServer的企业管理器,突然出现如下错误:---------------------------Microsoft Management Console---------------------------MMC 不能打开文件 C:/Program Files/Microso
2008-06-16 02:07:00 1007
原创 SQL Server中Case的不同用法
每当列表中有一个匹配值的时候,就会调用THEN子句。因为有ELSE子句,所以任何不能匹配前面情况的值将赋给ELSE中的语句。你可以在 WHERE 子句中使用 CASE。首先让我们看一下 CASE 的语法。在一般的 SELECT 中,其语法如下: SELECT = CASE WHEN T
2008-06-15 13:39:00 627
原创 ASP.NET的三层结构指什么
为何使用N层架构? 因为每一层都可以在仅仅更改很少量的代码后,就能放到物理上不同的服务器上使用,因此结构灵活而且性能更佳。此外,每层做些什么其它层是完全看不 到的,因此更改、更新某层,都不再需要重新编译或者更改全部的层了。这是个很强大的功能。例如,如果把数据访问代码与业务逻辑层分离,当数据库服务器更改 后,你只需要更改数据访问的代码,因为业务逻辑层是不变的,因此不需要更改或者重新编译业务
2008-06-13 20:30:00 696
原创 图书管理流量统计部分
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 753 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 634
原创 图书管理搜索部份
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 527
原创 图书管理图文验证部份
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 551
原创 图书管理数据删除部份
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 503
原创 图书管理登陆部分代码
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 673 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 598
原创 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 682
翻译 JavaScript Guide(翻译连载一)
简介JavaScript是一种用于开发客户端和因特网应用程序的轻量级,基于对象的脚本语言。Netscape Navigator解释嵌入HTML页面的JavaScript语句。LiveWire使你能够创建类似于CGI(通用网关接口)的服务应用程序。
2008-06-08 00:44:00 676
原创 动态切换图片
本示例实现鼠标移动到图片上方时显示一种图片,移开后显示另一种图片。点击图片后进入另一个窗口。注意标签的位置。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 711
原创 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 1578 1
转载 JavaScript onerror 事件
只要页面中出现脚步错误,就会产生 onerror 事件。如果需要利用 onerror 事件,就必须创建一个处理错误的函数。你可以把这个函数叫作 onerror 事件处理器 (onerror event handler)。这个事件处理器使用三个参数来调用:msg(错误消息)、url(发生错误的页面的 url)、line(发生错误的代码行)。语法:onerror=handleErrfunc
2008-06-07 04:20:00 1498
原创 frames分割窗口
首 先 您 必 须 告 诉 浏 览 器 您 要 开 几 个frame?这 是 由 这 个 标 签(tag)来 宣 告。rows这 项叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 成 几 列?而 cols这 项 叁 数 是 告 诉 浏 览 器 您 想 将 视 窗 分 割 成 几行?您 也 可 以 用 很 多 组 的 tags 将 视 窗 分 割 得 更 复 杂。
2008-06-06 14:15:00 515
原创 一个模拟卡啦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 559
原创 在HTML中引入CSS
在html中,引入css的方法主要有行内式、内嵌式、导入式和链接式4种 1。行内式 即在标记的style属性中设定css样式,这种方式本质上没体现出css的优势,因此不推荐使用。 2。嵌入式 在对页面中各种元素的设置集中写在和之间的,对于单个页面来说,这种方式很方便 3。导入式 导入式格式如下: @import "mystyle.css"; 4。
2008-06-05 23:46:00 3399
原创 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 797
原创 在程序中使用存储过程
使用输入参数的存储过程在ip表中插入记录并显示1.在查询分析器创建存储过程:在存储过程中,参数都位于CREATE PROC参数名之后及AS之前,并且使用@符号标识参数变量。在其后的SQL语句中可以直接使用声明的参数进行占位。CREATE PROCEDURE 存储过程名称@参数1,@参数2,@参数nASSQL语句 存储过程(1
2008-06-04 16:30:00 617
原创 声明有外鍵的表
外键(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 485
原创 投票统计模块(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 935
原创 显示在线人数
通过显示在线人数从而得知当前用户的数量.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 847
原创 一个显示访客数的例子
.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 542
原创 数据绑定到列表框并显示(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 621
原创 用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 581
原创 用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 2806
原创 访问自定义控件的私有属性
通过自定义控件的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 701
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
AsyncLock正确用法
2024-04-18
AsyncLock使用失效
2024-04-18
asp.net core mvc提交model获取不到值
2024-03-22
asp.net core mvc视图切换时执行事件
2024-03-11
怎样避免asp.net core mvc模板页的websocket重复调用
2024-03-08
ASP.NET CORE MVC有多个下拉列表,怎样传选中的那组到后台
2024-02-28
C#xml遍历节点数据
2024-02-20
jquery双击时在选项卡打开新的tab页面,存在则转到指定tab页面
2024-02-19
.net core mvc与桌面程序通信
2024-02-01
c#并行同步数据的正确方式
2024-01-15
mqtt.net服务订阅topic失败
2024-01-10
c#按名称高效更新指定的集合
2024-01-04
页面加载时默认选中一个tab切换
2023-12-08
asp.net core mvc 切换视图时触发
2023-12-07
网页暂时无法连接 或者它已永久 性地移动到了新网页
2023-12-04
asp.net core 清除全部浏览器中的缓存
2023-11-29
修改web客户端时间,保持时间同步
2023-11-28
利用actionFilter过滤器实现,过期跳转到登录界面时失败
2023-11-24
asp.net core mvc怎样在前台页面获取访问客户端的唯一信息
2023-11-18
asp.net core 7.0 mvc 设置JWT请求头,获取客户端token
2023-11-18
c# 多国语言怎样获取t系统时间
2023-11-16
c#一个统计集合中运行时间方法
2023-11-15
echart 双x轴怎样动态赋值
2023-11-14
相对js数值累加,但变拼接了
2023-11-10
使用dotnet *.dll运行mvc网站后,没有出现Listening提示
2023-11-08
c# 判断方法中的代码执行完成后才进入
2023-11-08
部署.NET CORE MVC网站遇到的问题
2023-11-07
.net core控制台会假死,敲回车后正常
2023-11-06
websocket将远程电脑的消息推送到了运行的电脑
2023-11-03
访问asp.net core mvc网站,能访问网站,但有的电脑不能加载出网页内容
2023-11-03
mvc文本框值有更新,但界面没有变化
2023-11-02
JWT只能登陆一台设备,否则剔除
2023-11-01
mqtt通配路径下某一个主题请教
2023-10-26
.net服务发布到服务后,读mysql数据库会退出
2023-10-14
.net7服务发布后在哪看自定义的日志
2023-10-14
jquery通过data-id查找元素
2023-09-25
用jquery获取同级元素下的值
2023-09-21
asp.net core mvc中jwt过期后重新定向到登陆界面
2023-09-18
asp.net core mvc网站启动后chrome不能收到websocket信息
2023-09-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人