
C#
文章平均质量分 58
samsara86
这个作者很懒,什么都没留下…
展开
-
Javascript:document.write提示unterminated string literal解决方法
Javascript使用document.write(str)进行输出时,常提示下列错误: Error: unterminated string literal。通常原因是输出字符str中包含换行符导致的。 解决方法如下:asp: str=replace(str,vbcrlf,"",1,-1,1)php:$str = str_re原创 2009-07-14 14:35:00 · 274 阅读 · 0 评论 -
Treeview sort in jquery
function sortNoChlidnode(treeid) { var count = $("#" + treeid).find("table").length; for (var i = 2; i < count + 1; i++) { $("#" +原创 2009-11-18 17:14:00 · 261 阅读 · 0 评论 -
用C#.NET实现拖放操作
在应用程序中,是通过处理一系列事件,如DragEnter,DragLeave和DragDrop事件来实现在Windows应用程序中的拖放操作的。通过使用这些事件参数中的可用信息,可以轻松实现拖放操作。拖放操作在代码中是通过三步实现的,首先是启动拖放操作,在需要拖动数据的控件上实现MouseDown事件响应代码,并调用DoDragDrop()方法;其次是实现拖放效果,在目标控件上添加DragEnte原创 2009-07-10 11:03:00 · 144 阅读 · 0 评论 -
用C#.NET实现拖放操作
在应用程序中,是通过处理一系列事件,如DragEnter,DragLeave和DragDrop事件来实现在Windows应用程序中的拖放操作的。通过使用这些事件参数中的可用信息,可以轻松实现拖放操作。拖放操作在代码中是通过三步实现的,首先是启动拖放操作,在需要拖动数据的控件上实现MouseDown事件响应代码,并调用DoDragDrop()方法;其次是实现拖放效果,在目标控件上添加DragEnte原创 2009-07-10 11:01:00 · 143 阅读 · 0 评论 -
repeater2-OnItemDataBound
protected void repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e) { DataRowView drv = (DataRowView)e.Item.DataItem;int a= drv["his_type"] HtmlGenericControl his_date = (H原创 2009-07-09 14:45:00 · 226 阅读 · 0 评论 -
SQL innerjoin
"SELECT DApplicationOnPhone.PhoneID, DApplication.ID AS appID, DApplication.Name AS appName, DApplication.Version AS Version, DApplicationState.Name AS State" + ", DApplicationOnPhone原创 2009-07-06 10:02:00 · 154 阅读 · 0 评论 -
VS2008快捷键大全
---------------------------------------VS2005快捷键大全----------------------------Ctrl+E,D ----格式化全部代码Ctrl+E,F ----格式化选中的代码CTRL + SHIFT + B生成解决方案CTRL + F7 生成编译CTRL + O 打开文件CTRL + SHIFT + O打开项目CTRL + SHIFT原创 2009-06-29 17:46:00 · 142 阅读 · 0 评论 -
用!important解决IE和Mozilla的布局差别
important终级讲解 很多人,包括很多网站(我所见过的所有网站,包括国内著名的‘网页设计师’网站),都说important是不被IE所支持和认识的,可是真的是这样吗?看了下边的两个例子,也许你会改变一些看法!例一: CSS #box { color:red !important; color:blue; }HTMLdiv id="Box"> 在原创 2009-06-29 17:07:00 · 300 阅读 · 0 评论 -
关于href=“#" click 拦截与跳转
$("#objs").click(function(e) { if (e.target.tagName == "A") { var bt = $(e.target); if (bt.text() == "Phones") {//xxxxxxxxxxxxxxxxxxxxxx原创 2009-06-29 13:26:00 · 448 阅读 · 0 评论 -
ini file operation
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Runtime.InteropServices;using System.Collections;using System.Collections.S原创 2009-06-24 10:34:00 · 183 阅读 · 0 评论 -
Outlook 相关
using System.Net.Mail;using Outlooks = Microsoft.Office.Interop.Outlook;using Office = Microsoft.Office.Core; public bool SendMail() { //// Create the Outlook appl原创 2009-06-24 10:21:00 · 220 阅读 · 0 评论 -
Excel相关
相关COM组件: using Excel = Microsoft.Office.Interop.Excel;using System.Runtime.InteropServices; // about dll namespace/// /// ExportExcelretire 的摘要说明/// #region Process for GC原创 2009-06-24 10:14:00 · 214 阅读 · 0 评论 -
Access Database Helper
using System;using System.Data;using System.Configuration;using System.Web;using System.Data.OleDb;/// /// DataAccess 的摘要说明/// public class AccessHelper{ protected OleDbConnec原创 2009-06-24 10:27:00 · 245 阅读 · 0 评论 -
一个C#操作Excel类,功能比较全
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.W原创 2009-07-21 11:21:00 · 347 阅读 · 0 评论 -
局部类型(partial)
局部类型(partial) /// /// 定義MyClass類的一個部分 /// public partial class MyClass { public void RtuStrin() { } } /// /// 定義MyClass類的另一個部原创 2010-02-01 11:13:00 · 183 阅读 · 0 评论