Fork me on GitHub
摘要: 最近在一个项目中用到这样的需求,需要PDA通过WebService来启动服务器上的一个exe应用程序,这个exe应用程序是有界面的。当我通过以下代码来启动这个exe时,问题出现了。程序并没有运行,但是在任务管理器里面却可以看到这个exe的进程。服务端代码: [WebMethod] public bool Test() { try { Process ProgStock = new Process(); ProgStock.StartInfo.WorkingDirectory = AppDomain.CurrentDomain.BaseDirectory; //应用程序所在目录 ProgStoc 阅读全文
posted @ 2013-05-13 17:42 思考的大腿 阅读(3721) 评论(1) 推荐(1) 编辑
摘要: 可以添加一个CompareValidator控件,设置如下属性:ControlToValidate = 要验证的dropdownlistType = 要验证的字符类型 (我的这里是验证字符串)ValueToCompare = 要验证的字符串的值Operator=NotEqual (不等于默认的那个选项值)。 阅读全文
posted @ 2013-05-11 16:30 思考的大腿 阅读(271) 评论(0) 推荐(0) 编辑
摘要: 作为程序员,要取得非凡成就需要记住的15件事。1.走一条不一样的路在有利于自己的市场中竞争,如果你满足于“泯然众人矣”,那恐怕就得跟那些低工资国家的程序员们同场竞技了。2.了解自己的公司以我在医院、咨询公司、物流企业以及大技术公司工作的经验来看,这一点所言不虚。不同公司的运营模式差异极大。如果你理解企业的运营模式,那你就不一样了!在这家公司中(或者对客户而言),你是参与业务运营的资产,你的工作能直接产生效益!3.与最优秀的人为伍很早以前,我喜欢打篮球,被分配到一个水平比较高的队里。一开始适应的确很困难,但环境的压力越大(重大比赛),我的长进也就越明显。每个领域其实都一样:你周围人的水平(以及对 阅读全文
posted @ 2013-05-11 14:59 思考的大腿 阅读(171) 评论(0) 推荐(0) 编辑
摘要: //01|02|03| ====> (01,02,03) string s = "("; for (int i = 0; i < countryid.Split('|').Length; i++) { if (i > 0 && i < countryid.Split('|').Length-1) { s += ","; } s +=countryid.Split('|')[... 阅读全文
posted @ 2013-05-09 18:03 思考的大腿 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 一个之前少用到的属性,Container.ItemIndex+1表示第一行~<ul class="in_d_main" style="height:147px"> <asp:Repeater ID="repDFSX" runat="server"> <ItemTemplate> <li class="<%# (Container.ItemIndex+1)==1?"in_fist":"in_lis2" %>&quo 阅读全文
posted @ 2013-05-09 15:23 思考的大腿 阅读(976) 评论(0) 推荐(0) 编辑
摘要: declare @NewsTitle nvarchar(255)declare mycursor cursor forselect title FROM lc_Article where t_id=1open mycursorfetch next from mycursor into @NewsTitleWhile(@@Fetch_Status = 0)begin INSERT INTO tb_News (NewsTitle) VALUES(@NewsTitle) fetch next from mycursor into @NewsTitle endclose mycur... 阅读全文
posted @ 2013-05-09 10:44 思考的大腿 阅读(364) 评论(0) 推荐(0) 编辑
摘要: declare @start int; declare @ends int; set @start=1; set @ends=49; while @start<=@ends begin set @start=@start+1 insert into tb_News(newstitle) values(@start); end 阅读全文
posted @ 2013-05-08 17:05 思考的大腿 阅读(195) 评论(0) 推荐(0) 编辑
摘要: nofollow标签通常有两种使用方法:1、将"nofollow"写在网页上的meta标签上,用来告诉搜索引擎不要抓取网页上的所有外部和包括内部链接。<meta name="robots” content="nofollow” />2、将"nofollow"放在超链接中,告诉搜索引擎不要抓取特定的链接。<a rel="external nofollow" href="url"><span>内容</span></a>3、nofollow标 阅读全文
posted @ 2013-05-08 10:03 思考的大腿 阅读(2051) 评论(0) 推荐(0) 编辑
摘要: 使用标量值函数作为主键自增值的时候,动软代码生成器的插入方法需要去掉主键的参数。你懂得。。不然会蛋疼。 阅读全文
posted @ 2013-05-03 17:09 思考的大腿 阅读(242) 评论(0) 推荐(0) 编辑
摘要: <%# Eval("Answer").ToString().Length > 100 ? Eval("Answer").ToString().Substring(0, 100) + "..." : Eval("Answer").ToString()%> 阅读全文
posted @ 2013-05-02 14:16 思考的大腿 阅读(136) 评论(0) 推荐(0) 编辑