摘要: if object_Id('tempdb..#Temp1010')is not null     drop table #Temp1010 go if object_Id('tempdb..#Temp2020')is not null     drop table #Temp2020 go create table #Temp2020( ... 阅读全文
posted @ 2009-10-10 16:18 汉城 阅读(269) 评论(0) 推荐(0) 编辑
摘要:   1、ReadOnly 2、Disabled 3、contentEditable 4、onkeydown=" if( event.keyCode == 9  ){return true;}else{ return false;}"  onpaste="return false" 阅读全文
posted @ 2009-10-10 15:11 汉城 阅读(185) 评论(0) 推荐(0) 编辑
摘要: Application.StartupPath 阅读全文
posted @ 2009-09-21 14:32 汉城 阅读(697) 评论(0) 推荐(0) 编辑
摘要:              Microsoft.Office.Interop.Excel.Range oCell = range[rowIndex, columnIndex] as Microsoft.Office.Interop.Excel.Range;    ... 阅读全文
posted @ 2009-09-21 13:58 汉城 阅读(1777) 评论(0) 推荐(0) 编辑
摘要:          /// <summary>         /// 插入数据         /// </summary>   ... 阅读全文
posted @ 2009-09-21 13:55 汉城 阅读(1015) 评论(0) 推荐(0) 编辑
摘要:         /// <summary>         /// 获取行号         /// </summary>    ... 阅读全文
posted @ 2009-09-21 13:50 汉城 阅读(1535) 评论(0) 推荐(0) 编辑
摘要:          /// <summary>         /// 保存Excel文件         /// </summary>  ... 阅读全文
posted @ 2009-09-21 13:44 汉城 阅读(437) 评论(0) 推荐(0) 编辑
摘要:   最近开发 Winform 应用程序,涉及到 嵌入Excel 文件。技术验证也快结束,需要整理一下帮助文档了。。 用webBrowser控件 打开Excel 。         /// <summary>        ///  &... 阅读全文
posted @ 2009-09-21 12:26 汉城 阅读(6903) 评论(9) 推荐(3) 编辑
摘要:           <asp:TextBox ID="txt_OUT_Purpose" runat="server" Height="54px" onpaste="return false" TextBoxMode=&quo... 阅读全文
posted @ 2009-09-07 15:35 汉城 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 原文地址 http://www.cnblogs.com/newwind521/archive/2007/04/02/697356.html 谢谢博主         public static void ExportDataGridViewToExcel(DataGridView dataGridview1)  &... 阅读全文
posted @ 2009-09-07 14:47 汉城 阅读(259) 评论(0) 推荐(0) 编辑
摘要: DataGridView 导出时出现的问题。 可能grid行的单元的没有值。   ------------------------------------------------------------------------------ if (dataGridview1.Rows[j].Cells[k].Value != null) {    &... 阅读全文
posted @ 2009-09-07 14:42 汉城 阅读(497) 评论(0) 推荐(0) 编辑
摘要: TextBox    可以输入  员工编号、员工姓名、注册账号 select * from V_EmployeeInfo   where (Status=N'已入职' or Status = '已注销')  AND emp_CompanyNo = '1100' and (employeeNo='dzLi' or emp_Emp... 阅读全文
posted @ 2009-09-03 10:36 汉城 阅读(218) 评论(0) 推荐(0) 编辑
摘要:     comboBox.DataSource = ds.Tables[0]; comboBox.DisplayMember = "Com_CompanyName"; comboBox.ValueMember = "Com_CompanyNo"; comboBox.Items.Insert(0, "--请选着—");... 阅读全文
posted @ 2009-09-02 17:44 汉城 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: private void dataGridView1_Scroll(object sender, ScrollEventArgs e)         {             if (e.ScrollOrientat... 阅读全文
posted @ 2009-09-01 15:16 汉城 阅读(639) 评论(0) 推荐(0) 编辑
摘要: private void dataGridView1_RowPrePaint(object sender, DataGridViewRowPrePaintEventArgs e)         {            ... 阅读全文
posted @ 2009-09-01 15:14 汉城 阅读(1214) 评论(0) 推荐(0) 编辑
摘要: public class DataSetCompare    {        SqlConnection _Comm = null;        DataSet dsEmployee = null;     ... 阅读全文
posted @ 2009-09-01 15:07 汉城 阅读(338) 评论(0) 推荐(0) 编辑
摘要: javascript:parent.window.location.href  =“地址" javascript:parent.location.href  =“地址" javascript:top.location.href  =“地址" 阅读全文
posted @ 2009-07-02 11:20 汉城 阅读(396) 评论(0) 推荐(0) 编辑
摘要: protected void gvList_ItemDataBound(object sender, DataGridItemEventArgs e)         {             if (e.Item.I... 阅读全文
posted @ 2009-07-02 11:18 汉城 阅读(218) 评论(0) 推荐(0) 编辑
摘要: <asp:LinkButton ID="LinkButton1" runat="server" CommandName="cgys" CommandArgument='<%# Eval("RN_ID")+","+Eval("v")%>' Text='<%#... 阅读全文
posted @ 2009-07-01 15:14 汉城 阅读(273) 评论(0) 推荐(0) 编辑
摘要: if object_id('str_EatDefaultR_object')is not null     drop proc str_EatDefaultR_object --go -- 失败 go --成功 CREATE PROCEDURE str_EatDefaultR_object AS BEGIN     select * f... 阅读全文
posted @ 2009-06-30 21:58 汉城 阅读(5107) 评论(1) 推荐(1) 编辑
摘要: <%--添加AjaxControlToolkit引用--%> <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> 添加 这个就行了 <form id= 阅读全文
posted @ 2009-06-30 15:00 汉城 阅读(1113) 评论(0) 推荐(0) 编辑
摘要:             Page.RegisterClientScriptBlock("clientScript", “”); 阅读全文
posted @ 2009-06-30 09:35 汉城 阅读(123) 评论(0) 推荐(0) 编辑
摘要: object.setAttribute(sName, vValue [, iFlags])参数: sName 必填项. String类型,属性名 vValue 必填项. 为属性指定的变量,可以为string, number, 或者 Boolean类型 iFlags 选填. 下面指定的两种 Integer 类型的标志 0 覆盖同名属性. 1 默认值. 为属性添加指定的值.实力<htm... 阅读全文
posted @ 2009-06-29 13:19 汉城 阅读(1060) 评论(0) 推荐(0) 编辑
摘要: <script type="text/javascript">         var dataTime=new  Date();         alert(dataTime);    ... 阅读全文
posted @ 2009-06-26 10:53 汉城 阅读(177) 评论(0) 推荐(0) 编辑
摘要: <asp:TextBox ID="txt" runat="server"  TextMode="MultiLine"  TextBoxMode="MultiLine" ></asp:TextBox> 阅读全文
posted @ 2009-06-25 19:46 汉城 阅读(708) 评论(0) 推荐(0) 编辑
摘要: if(event.keyCode==9  ){true;}else{false;}   当按下一个键盘按键时触发onkeydown事件 keycode   0 = keycode   1 = keycode   2 = keycode   3 = keycode   4 =... 阅读全文
posted @ 2009-06-25 13:45 汉城 阅读(345) 评论(0) 推荐(0) 编辑
摘要: 数据库 数据类型有问题,从新设置 数据库字段的数据类型就ok 阅读全文
posted @ 2009-06-25 10:12 汉城 阅读(656) 评论(0) 推荐(0) 编辑
摘要: select * from table    where dataFeid    is null 阅读全文
posted @ 2009-06-25 10:12 汉城 阅读(1316) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2009-06-24 19:33 汉城 阅读(522) 评论(0) 推荐(0) 编辑
摘要: onmouseover="this.style.cursor='hand' 阅读全文
posted @ 2009-06-24 14:48 汉城 阅读(326) 评论(0) 推荐(0) 编辑
摘要: DataTable   dt   =   (DataTable)dataGridView1.DataSource; dt.Rows.Clear(); dataGridView1.DataSource   =   dt;   应该是gridview.columns.clear(); 阅读全文
posted @ 2009-06-23 13:51 汉城 阅读(324) 评论(0) 推荐(0) 编辑
摘要: ^\-{0,1}[0-9]{0,}\.{0,1}[0-9]{1,}$   ------------------------------------------------------------------------------------------------------- 营养品 进口保健品 健美生 雅顿 倍健 美澳健 澳力健 康力士 宝健 嘉康利 康比特 自然之源 自然之... 阅读全文
posted @ 2009-06-23 07:37 汉城 阅读(1625) 评论(0) 推荐(0) 编辑
摘要: <html xmlns="http://www.w3.org/1999/xhtml" > <head>     <title>Untitled Page</title> </head> <body> <input type="text" onchang... 阅读全文
posted @ 2009-06-19 16:50 汉城 阅读(1109) 评论(1) 推荐(0) 编辑
摘要: onkeydown="return false;" onpaste="return false"-------------------------------------------------------------------------------------------------------营养品 进口保健品 健美生 雅顿 倍健 美澳健 澳力健 康力士 宝健 嘉康利 康比特 自然之源 自... 阅读全文
posted @ 2009-06-19 11:22 汉城 阅读(500) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/Mainz/archive/2008/11/16/1334554.html 最近我们的团队向客户做了一次成功的两周一次的delivery。首先在两周以前,我们就和客户进行了有效的沟通,得到了客户当前最希望的需求功能点,并一致认可了定义清晰的、可实现的两周后的项目目标。然后我们又综合了“资源,计划和需求”这个铁三角矛盾平衡点,从中抽出了最迫切的、可实... 阅读全文
posted @ 2008-11-17 08:55 汉城 阅读(649) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/RChen/archive/2008/09/23/1296721.html还在使用这样的代码吗? var txtName = grid1.Rows[e.RowIndex].Cells[0].FindControl("txtName") as TextBox;if (txtName != null){ // 读取值 // } 其实这些工作(在... 阅读全文
posted @ 2008-10-16 10:25 汉城 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2008-09-04 14:40 汉城 阅读(217) 评论(0) 推荐(0) 编辑
摘要: RedirectFromLoginPage 方法重定向到查询字符串中使用 ReturnURL 变量名指定的 URL。例如,在 URL http://www.contoso.com/login.aspx?ReturnUrl=caller.aspx 中,RedirectFromLoginPage 方法重定向到返回 URL caller.aspx。如果 ReturnURL 变量不存在,则 Redire... 阅读全文
posted @ 2008-09-03 16:41 汉城 阅读(1252) 评论(0) 推荐(0) 编辑
摘要: WPF界面设计技巧(11)-认知流文档 & 小议WPF的野心 斯克迪亚 WPF界面设计技巧(10)-样式的继承 斯克迪亚 WPF界面设计技巧(9)—使用UI自动化布局 斯克迪亚 一起来乐邮邮——妙趣小软件:MailMail发布预告 斯克迪亚 WPF界面设计技巧(8)—自制山寨版CheckListBox 斯克迪亚 WPF界面设计技巧(7)—模拟电梯升降... 阅读全文
posted @ 2008-08-12 15:49 汉城 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 学习LINQ工具:LINQPad 李永京 2008-04-17 17:41 阅读:2737 评论:25 LINQ可视化查询编辑器: VLinq 李永京 2008-04-02 20:43 阅读:5364 评论:46 LINQ体验(18)——LINQ to SQL语句之视图和继承支持 李永京 2008-03-28 21:19 阅读:3505 评论:6 LINQ体验(17)——LIN... 阅读全文
posted @ 2008-08-12 15:43 汉城 阅读(197) 评论(0) 推荐(0) 编辑