摘要: 1、使用字符串拼接的不好的地方:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web;namespa... 阅读全文
posted @ 2015-06-01 19:34 t800 阅读(266) 评论(0) 推荐(0)
摘要: 1、使用字符串拼接的不好的地方:using System;using System.Collections.Generic;using System.Data;using System.Data.SqlClient;using System.Linq;using System.Web;namespa... 阅读全文
posted @ 2015-06-01 19:30 t800 阅读(268) 评论(0) 推荐(0)
摘要: 1、先在数据库实创建好表,并写下联合查询语句selecta.Name,a.Address,b.NamefromCompanysaleftjoinManagersbona.ManagerId=b.id;2、如下图:3、完成公司列表展示的html页面 新增 ... 阅读全文
posted @ 2015-06-01 19:16 t800 阅读(232) 评论(0) 推荐(0)
摘要: 1、alert是阻塞窗口。(阻赛执行)(当前弹窗不关闭,不向下执行代码)。2、输出给浏览器的是JavaScript代码,但是对于服务器讲就是一段字符串,alert是运行在浏览器端的,所以不会等用户关了alert之后向下执行Redirect3、在服务器端弹出窗口正确的做法是: Respons... 阅读全文
posted @ 2015-06-01 18:36 t800 阅读(267) 评论(0) 推荐(0)
摘要: 1、当提交的时候用。return checkForm() 这个方法。2、服务器断的代码不可少,JavaScript 校验只是“可用性”考虑,而服务器端的校验才是正真的最后“把关者”。3、服务器的代码如果少了,就会产生漏洞,js少了只是体验性不好而已!4、在局网站中是没有办法获取主机的MAC地址的。h... 阅读全文
posted @ 2015-06-01 17:30 t800 阅读(108) 评论(0) 推荐(0)