[置顶] c#鼠标点击TextBox控件后清空默认字体-完美解决方案

摘要: 方案(一)脚本:<script type="text/javascript" language="javascript"> //得到焦点时触发事件 function onFocusFun(element, elementValue) { if (element.value == elementValue) { element.value = ""; element.style.colo... 阅读全文

posted @ 2010-08-11 09:51 孙州义 阅读(2500) 评论(0) 推荐(0) 编辑

2011年10月20日

关于利用js 操作Excel的代码

摘要: 使用JavaScript中的ActiveXObject填充并设置Excel格式var XLObj = new ActiveXObject("Excel.Application");var xlBook = XLObj.Workbooks.Add; //新增工作簿var ExcelSheet = xlBook.Worksheets(1); //创建工作表2.保存表格 ExcelSheet.SaveAs("C:\\TEST.XLS");3.使 Excel 通过 Application 对象可见 ExcelSheet.Application.Visible = 阅读全文

posted @ 2011-10-20 09:37 孙州义 阅读(465) 评论(1) 推荐(0) 编辑

2010年11月16日

关于用友华表Cell插件代码

摘要: 以下是csusing System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Data.SqlClient;using System.Data;using System.Text;using System.Col... 阅读全文

posted @ 2010-11-16 12:57 孙州义 阅读(5687) 评论(0) 推荐(0) 编辑

2010年10月8日

常用打开新页面的方法

摘要: 1 最常用的打开方式Respose.Write("<script language='javascript'>window.open('"+ url+"');</script>");2 直接转向新的页面,原窗口被代替;Response.Redirect("XXX.aspx",true)3 原窗口保留,另外新增一个新页面;Response.Write("<script&... 阅读全文

posted @ 2010-10-08 13:44 孙州义 阅读(912) 评论(0) 推荐(0) 编辑

2010年9月24日

读取某个文件夹下的所有文件并读取文件中的文本数据

摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;using System.Text.RegularE... 阅读全文

posted @ 2010-09-24 13:11 孙州义 阅读(1680) 评论(0) 推荐(0) 编辑

微软TTS语音引擎程序支持中英混读,其中需要有语音引擎----暂时写这些以后再慢慢完善 如果哪位朋友需要请联系我我把源代码奉上

摘要: using System;using System.Collections.Generic;using System.Collections;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using DotNetSpeec... 阅读全文

posted @ 2010-09-24 12:55 孙州义 阅读(3743) 评论(4) 推荐(0) 编辑

导航