2011年1月30日
摘要: 本文永久链接:http://comdeng.com/blog/article/10065.html可能是太过于懒惰的原因,研究个windows 服务的安装程序都花了大半天时间。在网上看了一些示例,大部分都言过其实,把过程搞得太过复杂,老是需要去研究如何利用InstallUtil.exe及其参数。事实上,既然要安装.net下制作的windows服务,肯定首先得在目标机器上安装有.net框架。因此,InstallUtil.exe也一定已经存在目标机器上了,因而利用微软的傻瓜式操作就能很好地解决windows服务安装和卸载的问题。过一段时间估计还要狠狠地利用windows服务来完成一些功能,为了加深 阅读全文
posted @ 2011-01-30 10:48 blair0807 阅读(384) 评论(0) 推荐(0) 编辑
  2011年1月26日
摘要: ASP.NET – The HTTP verb POST used to access path … is not allowedHere’s my contribution to the search engine troubleshooter’s knowledge base.I was trying to fire up an ASP.NET web service (.asmx) on my development machine after several months of not using it. I was getting the error:“The HTTP verb P 阅读全文
posted @ 2011-01-26 17:34 blair0807 阅读(944) 评论(1) 推荐(0) 编辑
  2010年12月21日
摘要: 导入代码,从csv文件得到datatableCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///summary///GetDataFromCsvFile///(ThroughStreamReader)////summary///returns/returnsprivateboolGetData(StreaminputStream,outstringerrMessage,outDataTabledtFile){errMessage= 阅读全文
posted @ 2010-12-21 14:07 blair0807 阅读(1918) 评论(0) 推荐(0) 编辑
  2010年11月29日
摘要: 分2列:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<tablewidth="100%"border="0"cellpadding="0"cellspacing="0"class="12title"ID="Table5"><a... 阅读全文
posted @ 2010-11-29 10:31 blair0807 阅读(445) 评论(0) 推荐(1) 编辑
  2010年11月25日
摘要: //获取某容器控件中id包含某字符串的控件id列表//参数:容器控件、要查找的控件的id关键字、要查找的控件的标签名称//返回值:查找到的控件id列表字符串,以逗号分割。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--functionGetIdLi... 阅读全文
posted @ 2010-11-25 15:26 blair0807 阅读(1120) 评论(0) 推荐(0) 编辑
  2010年11月11日
摘要: 发送邮件代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///sendemail///</summary>///<paramname="FromMail"></param>//... 阅读全文
posted @ 2010-11-11 10:49 blair0807 阅读(469) 评论(0) 推荐(0) 编辑
  2010年8月9日
摘要: 就是要删除含有被另外表作为外键的表的内容如何在TABLE 员工基本信息上建立删除员工触发器(注意:员工编号是 下面 工资表的外码)表结构如下如下:create table 员工基本信息 (员工编号 varchar(15) primary key, 姓名 varchar(8) not null, 性别 char(2), 年龄 int, 民族 varchar(8), 婚姻状况 char(4), 身份... 阅读全文
posted @ 2010-08-09 17:27 blair0807 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 别处转的 定义:何为触发器?在SQLServer里面也就是对某一个表的一定的操作,触发某种条件,从而执行的一段程序。触发器是一个特殊的存储过程。常见的触发器有三种:分别应用于Insert,Update,Delete事件。(SQLServer2000定义了新的触发器,这里不提)我为什么要使用触发器?比如,这么两个表:CreateTableStudent(--学生表StudentIDintprima... 阅读全文
posted @ 2010-08-09 17:22 blair0807 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 验证码图片生成代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem.Drawing;publicpartialclassPub_validcode:System.Web.UI.Page{protectedvoidPage_Load... 阅读全文
posted @ 2010-08-09 13:30 blair0807 阅读(1405) 评论(1) 推荐(1) 编辑
摘要: 假设ParentForm.aspx 页面上有TextBox1文本框和Open按钮点击Open按钮弹出SubForm.aspx,SubForm.aspx页面上有TextBox1文本框和Close按钮点击Close按钮关闭SubForm.aspx页面,并把子页面SubForm.aspx文本框的值显示到父页面ParentForm.aspx 的文本框上。父窗体前台代码:[代码]父窗体后台代码: [代码]子... 阅读全文
posted @ 2010-08-09 13:15 blair0807 阅读(851) 评论(0) 推荐(0) 编辑