上一页 1 ··· 7 8 9 10 11
  2012年3月22日
摘要: 解决方法:在VS2008中设置如下:工具-选项-源代码管理-插件选项-当前源代码管理插件 选择 Mircosoft Visual SourceSafe 阅读全文
posted @ 2012-03-22 09:17 LitDev 阅读(185) 评论(0) 推荐(0) 编辑
  2012年3月16日
摘要: 这是一个及其常见的问题,网上已经有关于这个问题的很多讨论。但是我觉得都是不求甚解,有一些还是在误导别人。下面我来说下我对这三者的理解,如有错误的地方请大家及时指正。 一:""与string.Empty我认为是一样的。网上有一篇被转载了几十遍的文章是这样说的string.Empty 不分配存储空间,"" 分配一个长度为空的存储空间,我认为这句话是错误并且含糊不清的。 1、实际上Empty是string类中的一个静态的只读字段,他的定义是这样的: public static readonly String Empty = ""; 也就是说 阅读全文
posted @ 2012-03-16 09:50 LitDev 阅读(278) 评论(0) 推荐(0) 编辑
  2012年2月23日
摘要: 新建两个Web窗体,a.aspx为登陆页面,b.aspx页面把用户在a.aspx页面中输入的用户名、密码显示出来。a.aspx.cs文件的代码:protected void Button1_Click(object sender, EventArgs e) { //使用querystring传值 //Response.Redirect("b.aspx?username=" + TextBox1.Text.Trim() + "&&pwd=" + TextBox2.Text.Trim()); //使用Session传... 阅读全文
posted @ 2012-02-23 14:28 LitDev 阅读(852) 评论(0) 推荐(1) 编辑
  2012年2月18日
摘要: aspx页面中的代码:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="遍历页面所有某一类型的控件.WebForm1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio 阅读全文
posted @ 2012-02-18 21:09 LitDev 阅读(3613) 评论(1) 推荐(0) 编辑
  2012年2月17日
摘要: create index myindex on Student(StudentID) ---创建一个索引,括号内为要为那一列添加索引drop index Student.myindex ---删除索引,需指定“表名.索引列”详细参考于:http://www.2cto.com/database/201201/117131.html 阅读全文
posted @ 2012-02-17 15:26 LitDev 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 技术参考与:http://apps.hi.baidu.com/share/detail/16489424,此处仅为本人学习入门笔记。学员信息表:学员借书信息表:---功能要求 ---1.如果我更改了学生的学号,我希望他的借书记录仍然与这个学生相关(也就是同时更改借书记录表的学号); ---2.如果该学生已经毕业,我希望删除他的学号的同时,也删除它的借书记录。 ---end ---对于1create trigger UpdateStudent on Student ---为Student表创建触发器for update ---为什么事件触发,有update、insert、delete可用as . 阅读全文
posted @ 2012-02-17 14:18 LitDev 阅读(488) 评论(0) 推荐(0) 编辑
  2012年2月16日
摘要: sql语句:select * from (select * ,row_number() over(order by id) as rowid from TableName) t where t.rowid > 30 and t.rowid <40 阅读全文
posted @ 2012-02-16 12:24 LitDev 阅读(407) 评论(0) 推荐(0) 编辑
  2012年2月12日
摘要: int [] arr = {5,1,7,9,2,4,6,,8,3}; Array.Sort(arr); //降序排列foreach(int a in arr) { Console.Write(a);}Array.Reverse(arr);//升序排列foreach(int a in arr) { Console.Write(a);}Console.ReadKey(); 阅读全文
posted @ 2012-02-12 12:12 LitDev 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 1 public int CheckUserName(string username) 2 { 3 DBClass db = new DBClass(); 4 int a; 5 using (SqlConnection conn = db.GetConn()) 6 { 7 SqlCommand cmd = new SqlCommand("select count(*) from tb_Member111 where id = '" + username + "'", conn); 8 a = Convert.ToInt32(cmd.Exe 阅读全文
posted @ 2012-02-12 12:09 LitDev 阅读(1148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11