zlb

2011年8月26日

asp_UpdatePanel PostBack返回后执行Javascript

摘要: Aspx页面代码 <%@ Page Language="C#" AutoEventWireup="true" %><html><head><title>UpdatePanel Call Javascript</title></head><body> <form id="form1" runat="server"> <asp:ScriptManager ID="ScriptMan... 阅读全文

posted @ 2011-08-26 13:38 zlb 阅读(239) 评论(0) 推荐(0) 编辑

2011年8月18日

AJAXToolkit_ ModalPopupExtender弹出窗中 使用分页方法

摘要: Asp.net页面 添加引用AjaxControlToolkit <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %> <asp:UpdatePanel ID="UpdatePanelPopUpProducts" runat="server"> <Co... 阅读全文

posted @ 2011-08-18 16:41 zlb 阅读(713) 评论(0) 推荐(0) 编辑

2011年7月12日

ScrollViewer 自动滚动(wpf和Silverlight都可用)

摘要: Xaml文件 <ScrollViewer x:Name="AutoScrollViewer" KeyUp="AutoScrollViewer_KeyUp"></ScrollViewer>c#代码 使用方法 //Scroll page vertically when focus changes to a control that is outside the viewable area.privat... 阅读全文

posted @ 2011-07-12 14:12 zlb 阅读(4318) 评论(1) 推荐(0) 编辑

2011年5月13日

C#使用xml文档作为数据源 Name cannot begin with the ' ' character, hexadecimal value 0x20

摘要: 程序中使用xml文件作为数据源,出现错误 Name cannot begin with the ' ' character, hexadecimal value 0x20 是因为xml文件中 出现 特殊字符 &lt; LineBreak/ &gt; 在中间有空格 所以出现上面的错误,改正方法为 &lt;LineBreak/&gt; 在xml文档中 &lt; 标识"<" &gt; 标识 为 “>” 阅读全文

posted @ 2011-05-13 18:03 zlb 阅读(2211) 评论(0) 推荐(0) 编辑

VS 2010Asp.net项目发布出错 TransformXml task failure

摘要: vs2010 发布web项目 出错 错误如下 The "TransformXml" task failed unexpectedly.System.UriFormatException: Invalid URI: The URI is empty. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) a... 阅读全文

posted @ 2011-05-13 14:58 zlb 阅读(907) 评论(0) 推荐(0) 编辑

2011年5月8日

c# 使用数据生成xml文件

摘要: Create XML document from object list using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.Linq;using System.Reflection;using Sys... 阅读全文

posted @ 2011-05-08 17:37 zlb 阅读(943) 评论(0) 推荐(0) 编辑

2011年4月24日

SQLServer 数据库无法查询中文

摘要: 在sql2008r2中,查询条件中有中文字体,不能查询出结果 如 SELECT * FROM User WHERE Name = '中文' 不能查询到结果,实际数据库中有这条记录。 解决方法1: 改为下面的 写法 则可以查询到结果 SELECT * FROM User WHERE Name = N'中文' 解决方法2: 数据库的编码不对,修改下数据库的编码ALTER DATABASE [数据库名]... 阅读全文

posted @ 2011-04-24 17:07 zlb 阅读(611) 评论(0) 推荐(0) 编辑

2011年4月13日

oracle 中 insert 日期类型

摘要: 语法如下 insert into Test(ID,CreatDate) values (SEQ_TestID.Nextval, to_date( '2011-04-13 173040 ', 'YYYY-MM-DD HH24:MI:ss')SEQ_TestID.Nextval 相当于sqlsserver中的自增字段SEQ_TestID 数据库中的序列 阅读全文

posted @ 2011-04-13 17:37 zlb 阅读(594) 评论(0) 推荐(0) 编辑

2011年4月12日

Oracle 写入和读取blob类型的数据(C#)

摘要: oracle建表语句 Create table blogtest(id number primary key,name varchar2(20),picture blob);C#写入数据库中/// <summary> /// 增加一条数据 /// </summary> public int Add(BlogTestInfo model) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into BlogTest("); strSql.Append("ID 阅读全文

posted @ 2011-04-12 14:31 zlb 阅读(2436) 评论(0) 推荐(1) 编辑

2011年4月11日

oracle 显示 中文字体( client的字符集设置,将NLS_LANG改为UTF8即可)

摘要: 客户端为Oracle 11g 查询中文字体 显示乱码 在32位操作系统下 修改 HKEY_LOCAL_MACHINE\SOFTWARE\Oracle\KEY_OraClient11g_home1 下的 NLS_LANG值为 AMERICAN_AMERICA.UTF8 在64位操作系统下 修改 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\ORACLE\KEY_Or... 阅读全文

posted @ 2011-04-11 13:44 zlb 阅读(3945) 评论(0) 推荐(0) 编辑

导航