摘要: using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Microsoft.Office.Interop.Word;using System.IO;public partial class Word相关_生成Word : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { CreateWordFile(" 阅读全文
posted @ 2011-07-15 10:06 立伟 阅读(2221) 评论(1) 推荐(0) 编辑
摘要: 因数据量较大,一下子全部提取上来比较耗时间,所以项目中决定用延时加载,在看的时候 。注意一下initialize、itemOpen事件,还有isBranch、和isLoad属性。搞清楚了这几个重要的东西,基本上就能明白了,下面贴代码flex代码:<mx:Tree id="agencyTree"horizontalScrollPolicy="on"width="190"labelField="@name"height="100%"scroll="agencyTree_scrollH 阅读全文
posted @ 2011-07-13 11:20 立伟 阅读(2003) 评论(0) 推荐(0) 编辑
摘要: 以下是作者对ajaxValidator的声明:ajaxvalidator是大家问的最多的问题,修正一个bug(感谢网友“じ龍峸√”),并把大家最关心的问题,再做一次阐述。bug现象:无论校验有没有校验通过,当控件再次得到焦点而再次失去焦点的时候tip里的提示就会停滞在得到焦点的提示历次升级的相关记录:a、为AjaxValidator添加一个addidvalue属性(是否自动添加id和值到url参数后面)为了修复AjaxValidator在配置信息的时候,取不到运行时候值的bug,插件将自动在url后面自动添加,形式为"id=value"的网页参数。在服务器端,你可以通过Re 阅读全文
posted @ 2011-07-12 14:12 立伟 阅读(2868) 评论(0) 推荐(0) 编辑
摘要: jQuery formValidator表单校验插件插件目前提示错误,有两种模式:showword和showalert,即文字提示和窗口提示目前支持5种大的校验方式,分别是:InputValidator(针对input、textarea、select控件的字符长度、值范围、选择个数的控制)、CompareValidator(提供2个对象的比较,目前可以比较字符串和数值型)、AjaxValidator(通过ajax到服务器上做数据校验)、RegexValidator(提供可扩展的正则表达式库) 、FunctionValidator (允许用户利用外部函数进行校验)针对jQuery formVal 阅读全文
posted @ 2011-07-12 13:51 立伟 阅读(719) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Data;using System.Drawing;using System.Data.SqlClient;using Excel;powered by 25175.netusing Word;using System.IO;namespace Common{/// <summary>/// 把数据导入到.doc、.txt、.xls文件中/// </summary>public class Export{ private const string DATAWORDPATH = @"C:\folder\doc\ 阅读全文
posted @ 2011-07-07 15:01 立伟 阅读(1101) 评论(0) 推荐(0) 编辑
摘要: .net将数据导出Word1,首先要导入Com文件Microsoft Word 11.0 Object Library.2.声明using System.Text.RegularExpressions;powered by 25175.net-----------------------------------------------------------------3.执行下面步骤Object Nothing = System.Reflection.Missing.Value; //取得Word文件保存路径 object filename = System.Web.HttpRuntime. 阅读全文
posted @ 2011-07-07 15:00 立伟 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using PublicProject.ENTITY;using System.Data;using System.IO;using System.Data.OleDb;using PublicProject.BLL;public partial class 使用Excel读取数据 : System.Web.UI.Page{ //集合 private List< 阅读全文
posted @ 2011-07-07 14:59 立伟 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: //到出到Excel事件 protected void ImageButton2_Click(object sender, ImageClickEventArgs e)powered by 25175.net { Scores score = new Scores(); //创建Scores对象 DataSet ds = score.QueryScore(); //调用QueryScore方法查询成绩并将查询结果放到DataSet数据集中 DataTable DT = ds.Tables[0]; //生成将要存放结果的Excel文件的名称 string NewFileName = DateTi 阅读全文
posted @ 2011-07-07 14:56 立伟 阅读(399) 评论(0) 推荐(1) 编辑
摘要: http://www.oschina.net/news/17996/25-elegant-jquery-tooltips-plugins-to-enhance-your-website-look?from=20110522 阅读全文
posted @ 2011-05-25 14:42 立伟 阅读(392) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/yoyiorlee/archive/2011/04/24/2026552.html 阅读全文
posted @ 2011-04-25 13:59 立伟 阅读(147) 评论(0) 推荐(0) 编辑