
C#.NET
dyc13
这个作者很懒,什么都没留下…
展开
-
C#取汉字首字母
static public string GetChineseSpell(string strText) { int len = strText.Length; string myStr = ""; for(int i=0;i { myStr += getSpell(strText.Substring(i,1)); } return myStr; }原创 2006-09-01 17:13:00 · 1612 阅读 · 0 评论 -
小写金额转为大写
我测试,没发现问题。如果谁发现了问题请联系我啊。daiyanchun@hotmail.com //金额小写转换为大写 调用参数:jesj...人民币小写金额 返回变量: name..人民币大写金额 public static string Fun_Jezh(double Jesj) { double JesjTemp; string[] str1原创 2007-04-12 17:46:00 · 1011 阅读 · 0 评论 -
C#接口
接口把一组公共方法和属性组合起来 ,以封装特定功能的一个集合。通过类可以实现接口,这样类就支持接口所有的属性和方法。 接口只能对方法和属性进行定义,不能实现,只能由支持它的类实现。接口中的成员不能用访问符修饰,如public,private,它的成员默认为public 定义接口比较简 单 public interface IMyinte原创 2007-01-06 22:58:00 · 836 阅读 · 0 评论 -
ASPNET:Server Control与Client Script
protected void Page_Load(object sender, EventArgs e) { // 客户端代码 Button1.Attributes["onclick"] = "javascript:return confirm(Are you sure?)"; } protected void Button1_Clic原创 2007-01-03 11:27:00 · 699 阅读 · 0 评论 -
C#委托
C#中委托,顾名思义就是用一个方法代替另一个方法: class Program { public delegate string GetStringFromInt(); public static string IntToString() { return "000"; } stat原创 2006-12-18 19:26:00 · 1179 阅读 · 1 评论 -
.Net开发环境配置
在XP操作系统中的设置最好把Internet 来宾帐户,设置成Administrators组,如果你要使用ACCESS数据库的话原创 2006-10-10 20:57:00 · 1360 阅读 · 1 评论 -
在 ASP.NET 2.0 中上载文件
发布日期: 2006-4-5 | 更新日期: 2006-4-5Bill EvjenReuters适用于:Microsoft ASP.NET 2.0Microsoft Visual Web Developer 2005 Express Edition摘要:了解如何使用 Microsoft ASP.NET 2.0 中新增的 FileUpload 服务器控件。原创 2006-09-27 22:57:00 · 1020 阅读 · 0 评论 -
大写金额转换函数
最近流行大写金额转换函数 今天看到N多人Blog大写金额转换函数,我也来凑个热闹,顺便换个思路 复制C#源代码 using System;namespace Excellent.Data{原创 2006-09-19 17:36:00 · 2073 阅读 · 0 评论 -
将天文数字转换成中文大写(.Net/C#/VB/T-SQL/Java 实现)
将天文数字转换成中文大写(.Net/C#/VB/T-SQL/Java 实现)C# Code: 复制C#源代码/* .Net/C#/T-SQL/VB/Java 实现: 将天文数字转换成中文大写 最近这里流行这个大写金额转换 我看了几个,感觉思路都不如这个 2000 年左右用 VB6 写的: 《VB6 之数据格式化对象使用技巧》 http://search.cs转载 2006-09-19 17:33:00 · 2021 阅读 · 0 评论 -
GridView行删除提示
这个问题网上有很多贴子,其处理方式如方法一: 方法一:原创 2007-05-30 17:08:00 · 1379 阅读 · 1 评论