2011年7月21日

摘要: 【1、普通的弹出窗口】 其实代码非常简单: <SCRIPT LANGUAGE=javascript> <!-- window.open ('page.html') --> </SCRIPT> 因为这是一段javascripts代码,所以它们应该放在<SCRIPT LANGUAGE=javascript>标签和</script>之间。<!-- 和 -->是对一些版本低的浏览器起作用,在这些老浏览器中不会将标签中的代码作为文本显示出来。要养成这个好习惯啊。 window.open ('page.html 阅读全文
posted @ 2011-07-21 21:13 骑着毛驴去编程 阅读(982) 评论(1) 推荐(0) 编辑
摘要: 假设数据表为UserDataStore,存储过程InsertUserData如下:CREATE PROCEDURE InsertUserData @UserName NVARCHAR(50) = NULL, @UserInfo NVARCHAR(4000) = NULL AS SET XACT_ABORT ON BEGIN TRANSACTION INSERT INTO [UserDataStore] VALUES (@UserName,@UserInfo) COMMIT TRANSACTION RETURN 0 GO则相应的程序为:... public bool InsertUserData 阅读全文
posted @ 2011-07-21 21:00 骑着毛驴去编程 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 引用SQL DMO组件//取得本局域网内所有可用sql服务器名 cmbServer.Items.Clear(); try { SQLDMO.Application app = new SQLDMO.ApplicationClass(); SQLDMO.NameList list = app.ListAvailableSQLServers(); int iCount = list.Count; for(int i = 0; i < iCount; i ++) { string sTemp = list.Item(i); if(sTemp != null) cmbServer.Items.A 阅读全文
posted @ 2011-07-21 02:01 骑着毛驴去编程 阅读(1265) 评论(0) 推荐(1) 编辑
摘要: 可以用DSA和RSA,如:using System;using System.Text;using System.Security.Cryptography; class dsacrypto_SignData { public static void Main(String[] args){ //先要将字符串转换为字节数组,这与编码有关。 String str = "this is a test."; byte[] bytes = Encoding.ASCII.GetBytes(str); //选择签名方式,有RSA和DSA DSACryptoServiceProvider 阅读全文
posted @ 2011-07-21 01:59 骑着毛驴去编程 阅读(302) 评论(0) 推荐(0) 编辑

导航