`
yaoyao19851023
  • 浏览: 31469 次
  • 性别: Icon_minigender_2
  • 来自: 大连
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
[/size] 字体大小: 标准1 (xx-small)2 (x-small)3 (small)4 (medium)5 (large)6 (x-large)7 (xx-large) 对齐: 标准居左居中居右[size=x-small]C #中的几个线程同步对象的技巧 很明显Add方法和Delete方法是不能同时被调用的,所以必须进行线程同步处理。简单的方法是用lock语句: public class Tools { private object abcde = new object(); private int count = 100; public void Add(int n ...
    最近两天,很巧,又写delphi的电子邮件客户端,还写了Java的电子邮件发送的小程序,一个是工作需要,另一个则是帮朋友的忙,有点巧. 1.Java的电子有件发送程序 SendMailBean.java package adu.com.kingsoft; import java.util.Date; import java.util.Properties; import javax.mail.Message; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.Interne ...
haha先留下以后几不用搜索了。     之前都没有用java去操作过excel,项目需要,所以专门去了解了下,看到有用到jxl这个插件,感觉很实用。特地建个备忘录,以便以后自己查询: public static void main(String[] args) {   try {       Workbook wb=Workbook.getWorkbook(new File("e:\\test.xls"));       Sheet sheet=wb.getSheet(0);       Cell[] cellcol=sheet.getColumn(0); ...
对话框有三种 1 alert 只是提醒,不能对脚本产生任何改变; 2 confirm 一般用于确认,返回 true 或者 false ,所以可以轻松用于 if...else...判断  3 prompt 一个带输入的对话框,可以返回用户填入的字符串,常见于某些留言本或者论坛输 ...
原创 C#的menuStrip(菜单)控件 在 menuStrip中加入横线: 在有内容的菜单上点右键(为什么要在“有内容的菜单上”,因为我不知道光有一条横线的菜单有什么用),“插入”-》选separator
tabControl控件自定义样式 原文: http://topic.csdn.net/u/20081110/14/3b61faf8-ece1-469a-8da5-2b7c515f040d.html using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace testTabFlash {     pub ...
header Content-Type类型 具体使用如:header('Content-Type: audio/mpeg'); 最近在做MP3防盗链时要查的header的相关信息,网上关于MP3的Content-Type的就有五花8门,下面应该是比较全而且正确的。smile Content-type 文件类型列表: <?php $mimetypes = array( 'ez' => 'application/andrew-inset', 'hqx' => 'application/mac-binhex40', 'cpt' => 'application/m ...
尊敬的xxx:     x月x 日,在 x会议上,正当x在台上讲话时,我不仅没有认真聆听和领会领导讲话精神,却在下面偷偷看报纸,并被领导发现。几天来,我认真反思,深刻自剖,为自己的行为感到了深深地愧疚和不安,在此,我 ...
DataSet ds=new DataSet(); ds.ReadXml(Server.MapPath("文件名")); DataGrid.DataSource=ds.Tables[0].DefaultView; DataGrid.DataBind();
select identity(int,1,1) as autoID,* into #Tmp from research_info WHERE FILE_ID IN( SELECT FILE_ID FROM research_info WHERE TITLE IN ( select TITLE from research_info GROUP BY TITLE HAVING COUNT(TITLE)>1 )) select min(autoID) as autoID into #Tmp2 from #Tmp group by TITLE select * from #Tmp where ...
Sys.WebForms.PageRequestManagerParserErrorException的解决方法 在使用UpdatePanel的时候,如果要用到Response.Write()方法,则会出错,错误信息内容大概如下: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls t ...
在网页中动态添加控件的实例 在网页中经常要动态添加控件的方法,例如上传多个文件,而具体不知道上传多少个文件,通过添加附件按钮来动态添加FileUPLoad控件。具体做法: 第一种方法:在网页中添加一个Panel1容器控件。在Panel1的容器控件中添加FileUpLoad控件。 添加一个命令按钮Button1,Button1.Text="添加附件"; 后台代码: using System; using System.Collections; using System.Configuration; using System.Data; using System.Lin ...
我想在检索的时候匹配下面样子的句子 woshi............. asdv.............{ 也就是已"wo"开头,换行然后以"{"结尾 请问用正则表达式怎么写啊? wo(.*?)\n(.*?)\{ wo匹配wo (.*?)匹配任意个非换行符的字符 \n匹配换行符 (.*?)匹配任意个非换行符的字符 \{匹配{
select dbo.RegexMatch( N'123-45-6789', N'^\d{3}-\d{2}-\d{4}$' ) sp_configure 'clr enabled',1 GO RECONFIGURE GO
--创建测试表     create   table   usertable(userid   varchar(20),username   nvarchar(20))     go     --创建触发器     create   trigger   tg_insert   on   usertable     for   insert     as     declare   @username   nvarchar(20)     declare   @userid   varchar(20)     declare   @num   int     declare   ...
Global site tag (gtag.js) - Google Analytics