摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------1. 一个GUID为一个128位的整数(16字节),在使用唯一标识符的情况下,你可以在所有计算机和网络之间使用这一整数。 2. GUID 的格式为“xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,其中每个 x 是 0-9 或 a-f 范围内的一个十六进制的数字。例如:337c7f2b-7a34-4f50-9141-bab9e6478cc8 即为有效的 GUID 值。 3. 世界上(Koffer注:应该是地球上)的任何两台计算机都不会生成重复的 GUI 阅读全文
posted @ 2013-04-11 16:45 李蒙 阅读(188) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ //IDisposible //using(类型 d = new ....) //{.....................} //SqlConnection为建立和数据库连接的对象 //using (SqlConnection conn = new SqlConnection( // "Data Source=127.0.0.1; Initial... 阅读全文
posted @ 2013-04-10 17:45 李蒙 阅读(124) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 int errorTimes = 0; 2 3 private void btnOk_Click(object sender, RoutedEventArgs e) 4 { 5 if (txtUser.Text.Length <= 0) 6 { 7 MessageBox.Show("请输入用户名!"); 8 txtUser.... 阅读全文
posted @ 2013-04-10 17:42 李蒙 阅读(345) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 <Window x:Class="EmpManagement.UpdateEmpWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="系统维护" Height= 阅读全文
posted @ 2013-04-10 17:41 李蒙 阅读(160) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 <Window x:Class="EmpManagement.EmpInfoWindow" 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 Title="员工名册" Height=&q 阅读全文
posted @ 2013-04-10 17:39 李蒙 阅读(125) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 public static object FormDbValue(object value) 2 { 3 if (value == DBNull.Value) 4 { 5 return null; 6 } 7 else 8 { 9 return value;10 ... 阅读全文
posted @ 2013-04-10 17:37 李蒙 阅读(117) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 //使用SqlBulkCopy大批量导入数据 2 private void btnBulk_Click(object sender, RoutedEventArgs e) 3 { 4 string connStr = ConfigurationManager.ConnectionStrings["myConnStr"].ConnectionString; 5 OpenFile... 阅读全文
posted @ 2013-04-10 17:36 李蒙 阅读(167) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------<?xml version="1.0" encoding="utf-8" ?><configuration> <connectionStrings> <add name="dbConnStr" connectionString="Data Source=.; Initial Catalog=MyTest;User ID=sa;Password=123456" 阅读全文
posted @ 2013-04-10 17:34 李蒙 阅读(114) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 using (SqlConnection conn = new SqlConnection("Data Source=.; Initial Catalog=MyTest;User ID=sa;Password=123456")) 2 { 3 conn.Open(); 4 using (SqlCommand cmd = conn.CreateCommand()) 5 ... 阅读全文
posted @ 2013-04-10 17:33 李蒙 阅读(193) 评论(0) 推荐(0) 编辑
摘要: ----------- Windows Phone 7手机开发、.Net培训、期待与您交流! ------------ 1 using (SqlConnection conn = new SqlConnection("Data Source=.; Initial Catalog=MyTest;User ID=sa;Password=123456")) 2 { 3 conn.Open(); 4 using (SqlCommand cmd = conn.CreateCommand()) 5 ... 阅读全文
posted @ 2013-04-10 17:32 李蒙 阅读(174) 评论(0) 推荐(0) 编辑