Shaofh

Shaofh

2006年11月7日

根據xml文檔數據 給DataTable增加行

摘要: 根據xml文檔數據 給DataTable增加行private DataTable DTXml(string node,string path)/////////////node節點,path xml文檔路徑{ XmlDocument XmlDoc = new XmlDocument(); XmlDoc.Load(path); XmlNode XmlRoot = XmlDoc.SelectSingl... 阅读全文

posted @ 2006-11-07 10:07 sh37 阅读(643) 评论(0) 推荐(0) 编辑

2006年10月24日

JS获取剪贴板内容的代码

摘要: JS获取剪贴板内容的代码。<Script Language="JavaScript">var content = clipboardData.getData("Text");if (content!=null) {document.write("<center><font size=5 color=red>WARNING, TEXT RETRIEVED:<... 阅读全文

posted @ 2006-10-24 14:10 sh37 阅读(1683) 评论(0) 推荐(0) 编辑

2006年9月5日

分页时使当前页码变色

摘要: ''以下代碼放在DataGrid的ItemCreated事件中即可 Dim i As Integer If e.Item.ItemType = ListItemType.Pager Then Dim _labPage As Label Dim pager As TableCell pager = CType(e.Item.Controls(0), TableCell) For i = 0 To p... 阅读全文

posted @ 2006-09-05 16:57 sh37 阅读(399) 评论(0) 推荐(0) 编辑

2006年8月11日

C#生成缩略图

摘要: //注意引入 using System.Drawing.Imaging;public bool ThumbnailCallback(){return false;}////oldfile原图地址, newfile新图地址private void ShowThumbnail(string oldfile,string newfile){ System.Drawing.Image image =Sys... 阅读全文

posted @ 2006-08-11 22:26 sh37 阅读(587) 评论(0) 推荐(0) 编辑

2006年7月7日

自動生成帶文字的圖片

摘要: 'str欲添加的文字 , width 圖片寬度,height圖片高度,filename 圖片名Private Function CreatePic(ByVal Str As String, ByVal width As Integer, ByVal heightAs Integer, ByVal filename As String) Dim bitmap As Bitmap = N... 阅读全文

posted @ 2006-07-07 14:53 sh37 阅读(1746) 评论(7) 推荐(0) 编辑

2006年7月3日

常用pl/sql

摘要: 重命名表------------------------------------------------rename test2 to test增加列--------------------------------------------------alter table test add c2 numeric刪除列-----------------------------------------... 阅读全文

posted @ 2006-07-03 15:46 sh37 阅读(455) 评论(1) 推荐(0) 编辑

vb.net後台抓取網頁內容

摘要: Public Function GetContent(ByVal url As String) On Error Resume Next Dim XmlHttp As Object XmlHttp = CreateObject("Microsoft.XMLHttp") XmlHttp.Open("POST", url, False) ... 阅读全文

posted @ 2006-07-03 15:43 sh37 阅读(1169) 评论(0) 推荐(0) 编辑

2006年5月25日

ServerVariables集合内容列表

摘要: ServerVariables集合用于得到系统的环境变量用以下程序可以讲ServerVariables集合的所有内容名称都显示出来 具体的系统环境变量如下: Auth_Type 当用户访问一个被保护的脚本时,用于判断是否是一个有效用户 Content_Length 客户端所提交的正文的长度 Content_Type 提交的正文数据类型 Gateway_Interface 服务器所使用的... 阅读全文

posted @ 2006-05-25 16:45 sh37 阅读(238) 评论(0) 推荐(0) 编辑

如何动态创建一个按纽 并给这个按纽绑上一个Onclick事件

摘要: 阅读全文

posted @ 2006-05-25 16:32 sh37 阅读(168) 评论(0) 推荐(0) 编辑

17种常用正则表达式

摘要: "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9... 阅读全文

posted @ 2006-05-25 16:29 sh37 阅读(580) 评论(0) 推荐(0) 编辑

导航