上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页

2008年8月31日

ASP.NET页面中嵌入视频播放器具(ZZ:http://www.cnblogs.com/ziyan22/articles/829360.html)

摘要: using System;namespace webcam{ public partial class WebForm2 : System.Web.UI.Page { public string DvUrl; protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { string DvUrlS = ... 阅读全文

posted @ 2008-08-31 21:15 优雅小猪 阅读(764) 评论(1) 推荐(0) 编辑

2008年8月29日

SET NOCOUNT ON/OFF

摘要: 当 SET NOCOUNT 为 ON 时,不返回计数(表示受Transact-SQL 语句影响的行数)。 当 SET NOCOUNT 为 OFF 时,返回计数(默认为OFF)。 即使当 SET NOCOUNT 为 ON 时,也更新 @@ROWCOUNT 函数。当 SET NOCOUNT 为 ON 时,将不给客户端发送存储过程中的每个语句的 DONE_IN_PROC 信息。当使用 Microsoft... 阅读全文

posted @ 2008-08-29 10:26 优雅小猪 阅读(9317) 评论(1) 推荐(0) 编辑

2008年8月19日

XML文件简单操作

摘要: 1读取XML文件using System.Xml;public static string GetAppSetting(string appSettingName){ XmlDocument _settings = new XmlDocument(); string FileName = System.IO.Path.GetDirectoryName(System.Reflection.Asse... 阅读全文

posted @ 2008-08-19 14:57 优雅小猪 阅读(229) 评论(0) 推荐(0) 编辑

left join语句中条件不同位置对结果的影响

摘要: 以下两种写法:SELECT a.*,b.id FROM [SH_StoreHouseBillDetail] a LEFT JOIN [SH_StoreHouseBill] b ON a.[StoreHouseBillID] =b.[ID] AND b.[BuyBillID]<>0SELECT a.*,b.id FROM [SH_StoreHouseBillDetail] a LEFT ... 阅读全文

posted @ 2008-08-19 14:50 优雅小猪 阅读(740) 评论(1) 推荐(0) 编辑

2008年8月2日

javascript备忘

摘要: 1.刷新页面window.location.reload(); 链接到:window.location.href="RelationIndividual_Info.aspx?CustomerID=1234" ; window.open("url","_blank");是打开新窗口 window.location.href=url;是本地窗口装载URL的网页//弹出模式对话框 var iWidth=... 阅读全文

posted @ 2008-08-02 10:03 优雅小猪 阅读(275) 评论(0) 推荐(0) 编辑

2008年6月12日

Application.DoEvents

摘要: private void button1_Click(object sender, EventArgs e) { Application.DoEvents(); this.label1.Text = "步骤1"; Application.DoEvents(); System.Threading.Thread.Sleep(5000); Application.DoEvents(); this.lab... 阅读全文

posted @ 2008-06-12 22:17 优雅小猪 阅读(632) 评论(0) 推荐(0) 编辑

2008年5月23日

windows mobile中使用datagrid绑定并显示数据及得到界面显示的数据值

摘要: 1 绑定数据源,设置显示列和显示格式等 if (ds!= null) { this.dataGrid_Fix.DataSource = ds; } DataGridTableStyle ts = new DataGridTableStyle(); ts.MappingName = "Table1"; DataGridColumnStyle ID = new DataGridTextBoxColum... 阅读全文

posted @ 2008-05-23 11:32 优雅小猪 阅读(6287) 评论(1) 推荐(0) 编辑

2008年5月22日

判断字符串中是否含有汉字

摘要: 1.判断是否含有汉字using System.Text.RegularExpressions;if (Regex.IsMatch("abc->", @"[\u4e00-\u9fa5]+")){Console.WriteLine("字符串中有汉字");}else{Console.WriteLine("字符串中无汉字");}2判断字符串是否全为汉字if (Regex.IsMatch("我你a",... 阅读全文

posted @ 2008-05-22 14:43 优雅小猪 阅读(1231) 评论(0) 推荐(0) 编辑

2008年5月21日

windows mobile中签字

摘要: 鼠标(手写笔)轨迹坐标记录,然后画很多短的线一:建立一个类,代表线段的两个端点(之所以用线段是由于需要连续的效果,否则如果鼠标移动的太快的话,会有断断续续的现象)public class DrawLine {private int _x1; private int _y1; private int _x2; private int _y2; public DrawLine(int X1, int ... 阅读全文

posted @ 2008-05-21 16:38 优雅小猪 阅读(197) 评论(0) 推荐(0) 编辑

2008年4月30日

从后来弹出messagebox

摘要: Response.Write("<script language=javascript>alert('hello');</script>"); 阅读全文

posted @ 2008-04-30 15:16 优雅小猪 阅读(206) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 13 下一页

导航