- 博客(12)
- 收藏
- 关注
转载 关于C#中的DLLImport
MSDN中对DllImportAttribute的解释是这样的:可将该属性应用于方法。DllImportAttribute 属性提供对从非托管 DLL 导出的函数进行调用所必需的信息。作为最低要求,必须提供包含入口点的 DLL 的名称。并给了一个示例:[DllImport("KERNEL32.DLL", EntryPoint="MoveFileW", SetLastError=true,Char
2008-09-18 18:14:00
435
原创 Javascript实现图片的移动,图片的放大,图片缩小功能
html>head>style>....drag {...}{ CURSOR: move; POSITION: relative; border-right: black 1px dashed; border-top: black 1px dashed; border-left: black 1px dashed; border-bottom: black 1px dashed;
2008-05-09 11:17:00
1934
原创 根据父级名称找出所有子集的SQL语句
if exists (select 1 from sysobjects where id = object_id(newtable1) and type = U)begin drop table newtable1--用来存放所有子集ID的临时表endif exists (select 1 f
2008-05-09 10:44:00
1646
原创 触发器工作原理
INSERT触发器的工作过程 可以定义一个无论何时用INSERT语句向表中插入数据时都会执行的触发器。 当触发INSERT触发器时,新的数据行就会被插入到触发器表和inserted表中。inserted表是一个逻辑表,它包含了已经插入的数据行的一个副本。inserted表包含了INSERT语句中已记录的插入动作。inserted表还允许引用由初始化INSERT语句而产生的日志数据。触发器通过检查i
2008-04-11 15:29:00
3039
3
原创 .net阅读心得(一)
1)怎么样写一个retry机制 class retryclass...{public delegate void RetryMethod();public void retry(int retrytime,TimeSpan interval,bool throwiffall,RetryMethod function)...{if(function!=null)...{for(int
2007-11-12 15:50:00
591
原创 C#获取局域网内所有的ip及对应的MAC
using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.Net;using System.Net.Sockets;using
2007-08-28 13:04:00
4398
3
原创 早期绑定和后期绑定
将对象分配给对象变量时,编译器会执行一个名为 binding 的进程。如果将对象分配给声明为特定对象类型的变量,则该对象为“早期绑定”。早期绑定对象允许编译器在应用程序执行前分配内存以及执行其他优化。例如,下面的代码片段将一个变量声明为 FileStream 类型:// Create a variable to hold a new object.System.IO.File
2007-07-20 14:23:00
873
原创 com+.webservice.remoting 的介绍
如果你已經以商業元件為設計應用程式的核心,則在 .NET 平台上開發程式,你會有左右逢源的感覺,我們在.NET平台可以組合各種元件,並快速實作提供適當的服務。我以 表-1 的 OrderBusinessLogic 處理訂單當做商業元件的例子,依序說明 .NET Remoting、COM+、及 ASP.NET Web Service 技術的特性,並介紹其對應的設計模型。我對這些設計模型的變化做個比喻
2007-07-20 13:52:00
996
原创 javascript读取xml
script language=javascript> var orderDoc=new ActiveXObject("MSXML2.DOMDocument.3.0"); orderDoc.async=false; orderDoc.load("xml.xml"); var items=orderDoc.s
2007-07-06 15:26:00
671
原创 DataGrid无刷新分页(Ajax)
HTML代码: ...@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="useControl.WebForm1" %>...@ Register TagPrefix="cc1" Namespace="MyControl" Assembly="MyControl" %>
2007-05-30 14:54:00
1437
原创 音频播放器Javascript代码
embed type="audio/x-pn-realaudio-plugin" id="player" controls="ImageWindow,ControlPanel" border="0">这个是播放器的代码.. var the_player;//是播放控件//以下是他的一些方法跟属性 the_player.DoPlay(); //暂停t
2007-05-30 14:40:00
1582
原创 分页的存储过程
Create PROCEDURE pagination @tblName varchar(255), -- 表名 @strGetFields varchar(1000) = *, -- 需要返回的列 @fldName varchar(255)=, -- 排序的字段名 @PageSize int = 10, -- 页尺寸 @PageIndex int = 1, -- 页码 @d
2007-05-14 11:39:00
662
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人