Alan Cai's Blogs
只埋头苦干是不行的,有时候还得抬头看看外面的世界。
posts - 6,comments - 4,trackbacks - 3

摘要: 今天忙了一天就为了把大小在1.5-2.0m的图片上传到Oracle数据库,用C#+winform写了个程序,在服务器端运行,把上传的图片保存到oracle数据库里面。以前没用过oracle,现在项目急需,只能边学边写,把网上所有的例子和源代码都用遍了,还没有调通,希望哪位高手指点一下,谢谢。已经找到解决方案:How to pass a BLOB as a parameter to an Oracl...阅读全文
posted @ 2007-06-04 21:43 Alan Cai 阅读(1424) 评论(1) 编辑
摘要: 1 using System; 2 using System.Text; 3 4 namespace Labs { 5 public class BigIntegerUtility { 6 public static string Multiply(string one, string other) { 7 if (string.IsNullOrEmpty(one) || string.IsNullOrWhiteSpace(one)) { 8 throw new ArgumentNullException("o...阅读全文
posted @ 2012-02-06 10:34 Alan Cai 阅读(21) 评论(0)  编辑
摘要: 在站点的默认 Web.Config 文件中使用:<appSettings configSource="My.config"/>然后新建 My.Config 文件:<?xml version="1.0" encoding="utf-8"?><appSettings> <add key="test" value="Hello world."/><...阅读全文
posted @ 2008-09-12 10:14 Alan Cai 阅读(716) 评论(1) 编辑
摘要: WinFormforeach (Control control in this.Controls) { if (control is TextBox) { (control as TextBox).Text = "Hello World."; }}ASP.NETforeach (Control control in this.FindControl("form1").Controls) { if ...阅读全文
posted @ 2008-09-11 10:24 Alan Cai 阅读(102) 评论(0) 编辑
摘要: 1、在 Web Service 里添加 Session[WebMethod(EnableSession = true)]public void CreateSession() { Session["Ikesy"] = "Hello world.";}ASP.NET 页面使用SessionService.SessionService sessionService = new SessionServi...阅读全文
posted @ 2008-09-10 18:24 Alan Cai 阅读(371) 评论(1) 编辑
摘要: 两台电脑,一台是vista sp1英文版,加vs2008英文版;另外一台是vista sp1简体中文版,加vs2008简体中文版。编译一个很简单的winform程序,里面就一个textbox,未做任何设置,如下图所示。 框架选择的是.net 2.0,编译到程序在vista下面均没问题,但是把程序放到安装了.net 3.5的xp,和安装了.net 2.0的win2000,均出现在textbox里面切...阅读全文
posted @ 2008-07-28 21:24 Alan Cai 阅读(528) 评论(1) 编辑
摘要: 使用 <input type="file" size="合适的宽度" style="width:合适的宽度" />。阅读全文
posted @ 2008-04-02 14:20 Alan Cai 阅读(3695) 评论(0) 编辑
摘要: 今天忙了一天就为了把大小在1.5-2.0m的图片上传到Oracle数据库,用C#+winform写了个程序,在服务器端运行,把上传的图片保存到oracle数据库里面。以前没用过oracle,现在项目急需,只能边学边写,把网上所有的例子和源代码都用遍了,还没有调通,希望哪位高手指点一下,谢谢。已经找到解决方案:How to pass a BLOB as a parameter to an Oracl...阅读全文
posted @ 2007-06-04 21:43 Alan Cai 阅读(1424) 评论(1) 编辑
仅列出标题