有用的.NET开发资料[转]

http://blog.csdn.net/rickjelly2004
他们两的资料很全的,看看吧!
http://blog.csdn.net/lihonggen0
http://blog.csdn.net/net_lover
http://community.csdn.net/Expert/FAQ/List_Room_FAQ_Index.asp?bigclassid=52
http://xml.sz.luohuedu.net/xml/Content.asp
http://www.developerfusion.com/utilities/convertvbtocsharp.aspx(比较的好c#到VB转换)
http://www.webasp.net/

DataGrid能一次修改多行记录吗?如果不行,有其他方法实现吗?
http://community.csdn.net/Expert/topic/3110/3110415.xml?temp=.4844477

DropDownList的问题,连动菜单的
http://community.csdn.net/Expert/topic/3093/3093649.xml?temp=.3064234

Datagrid 显示数据库中的二进制的图片,有点难度!
http://community.csdn.net/Expert/topic/3112/3112270.xml?temp=.6695215

timer 不动作?
http://community.csdn.net/Expert/topic/3114/3114792.xml?temp=.8809473

asp.net打印方案(最好是操作Excel),各位高手请进!
http://community.csdn.net/Expert/topic/3114/3114640.xml?temp=.9786646

在asp.net上怎么弹出保存对话框?
http://community.csdn.net/Expert/topic/2889/2889825.xml?temp=.1032984

如何给密码加密呢
http://community.csdn.net/Expert/topic/3128/3128859.xml?temp=.1032984

关于定时刷新客户端
http://community.csdn.net/Expert/topic/3128/3128881.xml?temp=.1032984

如何让datagrid分页的按钮"上一页下一页"使用图片
http://community.csdn.net/Expert/topic/3156/3156678.xml?temp=.5541651

如何获取当前的域名信息!?
http://community.csdn.net/Expert/topic/3165/3165536.xml?temp=.705166

怎样根据客户中英文系统进入中英文页面?
http://community.csdn.net/Expert/topic/3169/3169965.xml?temp=.3843653

怎么在文本框中屏蔽非数字的字符?
http://community.csdn.net/Expert/topic/3196/3196298.xml?temp=.6959497

TextBox 的问题!
http://community.csdn.net/Expert/topic/3209/3209270.xml?temp=.7582666

字符串处理的问题!
http://community.csdn.net/Expert/topic/3208/3208879.xml?temp=.9452173

如果定时激活事件
http://community.csdn.net/Expert/topic/3205/3205773.xml?temp=.9452173

多行的TextBox如何限制输入长度??
http://community.csdn.net/Expert/topic/2807/2807286.xml?temp=.8840143

DataGrid中要加一个升序No,有没有什么好办法?
http://community.csdn.net/Expert/topic/3207/3207909.xml?temp=.5894586

怎样屏蔽浏览器关闭按钮及ALT+F4 快捷键
http://community.csdn.net/Expert/topic/3209/3209562.xml?temp=.1971857

将数据插到dataset中,在一起更新
http://community.csdn.net/Expert/topic/3213/3213143.xml?temp=.3740045

请问如何将文件转成流存入数据库?
http://community.csdn.net/Expert/topic/3212/3212280.xml?temp=.4363214

同一台机上,页面a中如何判断页面b是否打开?
http://community.csdn.net/Expert/topic/3216/3216411.xml?temp=.2874567

怎样让hyperlink的文本不显示下划线?鼠标移到上面时变色、闪动、偏移的效果是怎么做出来的?
http://community.csdn.net/Expert/topic/3215/3215382.xml?temp=.3212702

数据长度的问题?/
http://community.csdn.net/Expert/topic/3225/3225063.xml?temp=.3124811

高手求js下拉菜单!
http://community.csdn.net/Expert/topic/3224/3224921.xml?temp=.3124811

datagrid里的模板列里有个DROPDOWNLIST,但是DROPDOWNLIST里面没有commandName属性,我如何实现DROPDOWNLIST选择改变后触发DATAGRID的ITEMCOMMAND事件呢?
http://community.csdn.net/Expert/topic/3225/3225008.xml?temp=.5111505

怎么的到这个月有几号
http://community.csdn.net/Expert/topic/3226/3226622.xml?temp=.550152

请时间计算怎么做啊?
http://community.csdn.net/Expert/topic/3226/3226715.xml?temp=.2172663

怎么web form中没有treeview控件?
http://community.csdn.net/Expert/topic/3221/3221150.xml?temp=.4811823

一个关于如何读取时间里的年月日的问题(c#)
http://community.csdn.net/Expert/topic/3232/3232623.xml?temp=.3999445

点“后退”时提示:警告: 网页已经过期……
http://community.csdn.net/Expert/topic/3232/3232996.xml?temp=.7035334

我想在xml里建一个像数据库中的“自动递增的”ID字段,要怎么处理呢?
http://community.csdn.net/Expert/topic/3216/3216145.xml?temp=.241955

求给Datagrid排序的js代码 (不刷新页面)
http://community.csdn.net/Expert/topic/3240/3240019.xml?temp=.8856317

6个小问题
http://community.csdn.net/Expert/topic/3244/3244153.xml?temp=.6121332

请问如何用asp.net如何获取网卡硬件地址?
http://community.csdn.net/Expert/topic/3245/3245524.xml?temp=.8336908
求一个形如YYYY/MM/DD的日期判断正则表达式
http://community.csdn.net/Expert/topic/3245/3245783.xml?temp=.6137201

如何避免页面刷时产生的回送事件??
http://community.csdn.net/Expert/topic/3235/3235852.xml?temp=.2632563

如何让IE6.0右上角的“闭关”按钮失效?
http://community.csdn.net/Expert/topic/3246/3246351.xml?temp=.9026605

求一个删掉字符串两边空格的正则表达式?
http://community.csdn.net/Expert/topic/3264/3264840.xml?temp=.6270258

如何在改变datagrid行颜色的同时加上边框线效果?
http://community.csdn.net/Expert/topic/2760/2760907.xml?temp=.7303583

能否启用两个以上的Forms身份验证?
http://community.csdn.net/Expert/topic/3267/3267206.xml?temp=.5668451

谁知道在VB里怎样取得IP地址吗
http://community.csdn.net/Expert/topic/3278/3278237.xml?temp=.4232904

请教如何判断键盘的大小写状态、数字小键盘状态?
http://community.csdn.net/Expert/topic/3275/3275147.xml?temp=.3133051

如何使图片上的图片变为手型?
http://community.csdn.net/Expert/topic/3278/3278646.xml?temp=.2121088

现在得到当前的路径,如:http://community.csdn.net/Expert/PostNew.asp?room=5202
我用c#在后台怎么得到:PostNew.asp这个值??
http://community.csdn.net/Expert/topic/3278/3278849.xml?temp=.4395258

大侠,帮忙:ASP.net发送邮件的问题
http://community.csdn.net/Expert/topic/3268/3268007.xml?temp=.7686884

怎么解决url中有汉字,该也就无法正常显示的问题???在线等!
http://community.csdn.net/Expert/topic/3285/3285910.xml?temp=.6879999
怎样才能彻底解决非法输入字符串的问题?
http://community.csdn.net/Expert/topic/3302/3302116.xml?temp=.1588251

多文件上传带源代码
http://community.csdn.net/Expert/topic/3303/3303178.xml?temp=.3156855

192.168.0.2/bb/logout.aspx 无法注销 192.168.0.1/aa下的cookie
http://community.csdn.net/Expert/topic/3215/3215703.xml?temp=.9740106

ASP.net中如何实现对输入错误的提示声音????(急)
http://community.csdn.net/Expert/topic/2660/2660081.xml?temp=.0885126

有关您是本网站第几位访问者,各位是否有相关代码,能帮我解决么?
http://community.csdn.net/Expert/topic/3321/3321164.xml?temp=.8671533

正则:密码包含字母,数字,下划线,可以,但包含*怎么验证??
http://community.csdn.net/Expert/topic/3213/3213002.xml?temp=.5960352

求asp.net好书!!!
http://community.csdn.net/Expert/topic/3321/3321571.xml?temp=.545437

如何在vbscript中弹出文件保存的对话框,急~~~~~
http://community.csdn.net/Expert/topic/3322/3322899.xml?temp=.8863184

net高手必看。请问如何设置ie浏览器窗口最大化???
http://community.csdn.net/Expert/topic/3328/3328282.xml?temp=.9729883

如何不打开文件 直接出现下载保存提示框
http://community.csdn.net/Expert/topic/3332/3332144.xml?temp=.9399683

怎么把字符串"99999999.9"格式化成#99,999,999.9??
http://community.csdn.net/Expert/topic/3330/3330512.xml?temp=.3490259

请问如何将我字符串转为十六进制值呢
http://community.csdn.net/Expert/topic/3321/3321685.xml?temp=.1767237

字符串中的转义符号问题
http://community.csdn.net/Expert/topic/3336/3336185.xml?temp=.3242456

http://dotnet.aspx.cc/
http://tech.ccidnet.com/pub/column/c1135_p2.html
这两个站点也不错

关于获取路径的简单问题!!
http://community.csdn.net/Expert/topic/3332/3332981.xml?temp=.6509668

http://community.csdn.net/expert/FAQ/List_FAQ_index.asp

asp.net常用函数
Abs(number) 取得数值的绝对值。  
Asc(String) 取得字符串表达式的第一个字符ASCII 码。  
Atn(number) 取得一个角度的反正切值。  
CallByName (object, procname, usecalltype,[args()]) 执行一个对象的方法、设定或传回对象的属性。  
CBool(expression) 转换表达式为Boolean 型态。  
CByte(expression) 转换表达式为Byte 型态。  
CChar(expression) 转换表达式为字符型态。  
CDate(expression) 转换表达式为Date 型态。  
CDbl(expression) 转换表达式为Double 型态。  
CDec(expression) 转换表达式为Decimal 型态。  
CInt(expression) 转换表达式为Integer 型态。  
CLng(expression) 转换表达式为Long 型态。  
CObj(expression) 转换表达式为Object 型态。  
CShort(expression) 转换表达式为Short 型态。  
CSng(expression) 转换表达式为Single 型态。  
CStr(expression) 转换表达式为String 型态。  
Choose (index, choice-1[, choice-2, ... [, choice-n]]) 以索引值来选择并传回所设定的参数。  
Chr(charcode) 以ASCII 码来取得字符内容。  
Close(filenumberlist) 结束使用Open 开启的档案。  
Cos(number) 取得一个角度的余弦值。  
Ctype(expression, typename) 转换表达式的型态。  
DateAdd(dateinterval, number, datetime) 对日期或时间作加减。  
DateDiff(dateinterval, date1, date2) 计算两个日期或时间间的差值。  
DatePart (dateinterval, date) 依接收的日期或时间参数传回年、月、日或时间。  
DateSerial(year, month, day) 将接收的参数合并为一个只有日期的Date 型态的数据。  
DateValue(datetime) 取得符合国别设定样式的日期值,并包含时间。 
Day(datetime) 依接收的日期参数传回日。  
Eof(filenumber) 当抵达一个被开启的档案结尾时会传回True。  
Exp(number) 依接收的参数传回e 的次方值。  
FileDateTime(pathname) 传回档案建立时的日期、时间。  
FileLen(pathname) 传回档案的长度,单位是Byte。  
Filter(sourcearray, match[, include[, compare]]) 搜寻字符串数组中的指定字符串,凡是数组元素中含有指定字符串,会将它们结合成新的字符串数组并传回。若是要传回不含指定字符串的数组元素,则include 参数设为False。compare 参数则是设定搜寻时是否区分大小写,此时只要给TextCompare 常数或1 即可。  
Fix(number) 去掉参数的小数部分并传回。  
Format(expression[, style[, firstdayofweek[, firstweekofyear]]]) 将日期、时间和数值资料转为每个国家都可以接受的格式。  
FormatCurrency(expression[,numdigitsafterdecimal [,includeleadingdigit]]) 将数值输出为金额型态。numdigitsafterdecimal 参数为小数字数,includeleadingdigit 参数为当整数为0 时是否补至整数字数。  
FormatDateTime(date[,namedformat]) 传回格式化的日期或时间数据。  
FormatNumber(expression[,numdigitsafterdecimal [,includeleadingdigit]]) 传回格式化的数值数据。Numdigitsafterdecimal 参数为小数字数,includeleadingdigit 参数为当整数为0 时是否补至整数字数。  
FormatPercent(expression[,numdigitsafterdecimal [,includeleadingdigit]]) 传回转换为百分比格式的数值数据。numdigitsafterdecimal 参数为小数字数,includeleadingdigit 参数为当整数为0 时是否补至整数字数。  
GetAttr(filename) 传回档案或目录的属性值。  
Hex(number) 将数值参数转换为16 进制值。  
Hour(time) 传回时间的小时字段,型态是Integer。  
Iif(expression, truepart, falsepart) 当表达式的传回值为True 时执行truepart 字段的程序,反之则执行falsepart 字段。  
InStr([start, ]string1, string2) 搜寻string2 参数设定的字符出现在字符串的第几个字符,start 为由第几个字符开始寻找,string1 为欲搜寻的字符串,string2 为欲搜寻的字符。  
Int(number) 传回小于或等于接收参数的最大整数值。  
IsArray(varname) 判断一个变量是否为数组型态,若为数组则传回True,反之则为False。 
IsDate(expression) 判断表达式内容是否为DateTime 型态,若是则传回True,反之则为False。  
IsDbNull(expression) 判断表达式内容是否为Null,若是则传回True,反之则为False。  
IsNumeric(expression) 判断表达式内容是否为数值型态,若是则传回True,反之则为False。  
Join(sourcearray[, delimiter]) 将字符串数组合并唯一个字符串,delimiter 参数是设定在各个元素间加入新的字符串。  
Lcase(string) 将字符串转换为小写字体。  
Left(string, length) 由字符串左边开始取得length 参数设定长度的字符。  
Len(string) 取得字符串的长度。  
Log(number) 取得数值的自然对数。  
Ltrim(string) 去掉字符串的左边空白部分。  
Mid(string, start[, length]) 取出字符串中strat 参数设定的字符后length 长度的字符串,若length 参数没有设定,则取回start 以后全部的字符。  
Minute(time) 取得时间内容的分部分,型态为Integer。  
MkDir(path) 建立一个新的目录。  
Month(date) 取得日期的月部分,型态为Integer。 
MonthName(month) 依接收的月份数值取得该月份的完整写法。  
Now() 取得目前的日期和时间。  
Oct(number) 将数值参数转换为8 进制值。  
Replace(expression, find, replace) 将字符串中find 参数指定的字符串转换为replace 参数指定的字符串。  
Right(string,length) 由字符串右边开始取得length 参数设定长度的字符。  
RmDir(path) 移除一个空的目录。  
Rnd() 取得介于0 到1 之间的小数,如果每次都要取得不同的值,使用前需加上Randomize 叙述。  
Rtrim(string) 去掉字符串的右边空白部分。  
Second(time) 取得时间内容的秒部分,型态为Integer。  
Sign(number) 取得数值内容是正数或负数,正数传回1,负数传回-1,0 传回0。  
Sin(number) 取得一个角度的正弦值。  
Space(number) 取得number 参数设定的空白字符串。 
Split(expression[, delimiter]) 以delimiter 参数设定的条件字符串来将字符串分割为字符串数组。  
Sqrt(number) 取得一数值得平方根。  
Str(number) 将数字转为字符串后传回。  
StrReverse(expression) 取得字符串内容反转后的结果。  
Tan(number) 取得某个角度的正切值。  
TimeOfDay() 取得目前不包含日期的时间。  
Timer() 取得由0:00 到目前时间的秒数,型态为Double。  
TimeSerial(hour, minute, second) 将接收的参数合并为一个只有时间Date 型态的数据。  
TimaValue(time) 取得符合国别设定样式的时间值。  
Today() 取得今天不包含时间的日期。  
Trim(string) 去掉字符串开头和结尾的空白。  
TypeName(varname) 取得变量或对象的型态。  
Ubound(arrayname[, dimension]) 取得数组的最终索引值,dimension 参数是指定取得第几维度的最终索引值。  
Ucase(string) 将字符串转换为大写。  
Val(string) 将代表数字的字符串转换为数值型态,若字符串中含有非数字的内容则会将其去除后,合并为一数字。  
Weekday(date) 取的参数中的日期是一个星期的第几天,星期天为1、星期一为2、星期二为3 依此类推。  
WeekDayName(number) 依接收的参数取得星期的名称,可接收的参数为1 到7,星期天为1、星期一为2、星期二为3 依此类推。
比较全面的html附加技巧:
http://community.csdn.net/Expert/topic/3343/3343138.xml?temp=.4223749

有的专栏,对DataGrid介绍的比较的详细。
http://www.chinabs.net/aspnet/default.asp

http://www.developerfusion.com/utilities/convertvbtocsharp.aspx(比较的好c#到VB转换)怎么不能下载???
这个转化工具有下的吗??

字符串(含有汉字)转化为ascII16进制问题
http://community.csdn.net/Expert/topic/3342/3342635.xml?temp=.6246912

如何访问Datagrid的Footer Template中的控件?
http://community.csdn.net/Expert/topic/3347/3347037.xml?temp=.8925287

点击datagrid中的一行,如何将该行中某一列的内容取出并显示在textbox中??
http://community.csdn.net/Expert/topic/3347/3347089.xml?temp=.7292597

DataGrid的行选择问题(用checkbox,RadioButton?)
http://community.csdn.net/Expert/topic/3347/3347014.xml?temp=2.911013E-02

怎样向 DataGrid 中增加一行空行??
http://community.csdn.net/Expert/topic/3343/3343562.xml?temp=.0637781

关于网站在线用户在线检测的实现
http://community.csdn.net/Expert/topic/3346/3346866.xml?temp=.1771509

提供一些有用的东西![在线帮助文档和OutLook开发技术]
http://community.csdn.net/Expert/topic/3340/3340561.xml?temp=.2760279

关于弹出模太窗口的缓存问题!
http://community.csdn.net/Expert/topic/3328/3328627.xml?temp=.7910425

session共享!
http://community.csdn.net/Expert/topic/3359/3359224.xml?temp=.2388269

附加码生产程序
http://community.csdn.net/Expert/topic/3364/3364665.xml?temp=.5620539

关于字符串格式化的问题在那里有详细介绍啊?
http://community.csdn.net/Expert/topicview.asp?id=3347649

请问如何在数据邦定时将0.2格式化为20%
http://community.csdn.net/Expert/topicview.asp?id=3359083

TAB第一次按时怎么会刷新..以后按TAB就不会了.这是为什么???
http://community.csdn.net/Expert/topicview.asp?id=3365632

刷新一下,然后就滚动到了最上面
http://community.csdn.net/Expert/topic/3366/3366852.xml?temp=.9356501

推荐两本asp.net的好书吧!!
http://community.csdn.net/Expert/topic/3366/3366833.xml?temp=.8746302

让web页面部分内容只读
http://community.csdn.net/Expert/topic/3333/3333942.xml?temp=2.880496E-02

在.net中实现javascript的confirm功能
http://community.csdn.net/Expert/topic/2657/2657816.xml?temp=.6350061

正则匹配,匹配电话号码
http://community.csdn.net/Expert/topic/3368/3368479.xml?temp=.9452478

showModalDialog的问题
http://community.csdn.net/Expert/topic/3379/3379592.xml?temp=.9301721

表单提交用submit()和按钮有什么不同
http://community.csdn.net/Expert/topic/3380/3380323.xml?temp=.2949793

双击datagrid某个单元格时,只是这个单元格可编辑,
http://community.csdn.net/Expert/topic/3399/3399546.xml?temp=.6452295

读取XM文件中的信息
http://community.csdn.net/Expert/topic/3407/3407705.xml?temp=.6566584

解决的动态生成控件并保存问题
http://community.csdn.net/Expert/topic/3370/3370620.xml?temp=.9285547

求两个日期之间差的函数吗? 如sql中的datadiff(month,d1,d2)
http://community.csdn.net/Expert/topic/3383/3383127.xml?temp=.2753565

iframe编辑的高难度问题
http://community.csdn.net/Expert/topic/3341/3341021.xml?temp=.9449121

怎么使ASP.NET页面不被缓存?
http://community.csdn.net/Expert/topic/3392/3392511.xml?temp=1.424807E-02

我也来贴几个:入门级别的
如何从数据库中读出前三行数据啊?急急
http://community.csdn.net/Expert/topic/3267/3267004.xml?temp=.2364466
如何在后台(*.cs文件中)设定Label服务器空件的ForeColor啊?
http://community.csdn.net/Expert/topic/3355/3355537.xml?temp=.4596369
如何将图片在显示的时候等比例压缩啊?
http://community.csdn.net/Expert/topic/3238/3238435.xml?temp=.5430719

http://community.csdn.net/Expert/topic/3433/3433453.xml?temp=.1722223

怎么判断是debug还是release模式?(C#)(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3245822

怎么实现C++的sizeof?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3247768

托管-非托管类型转换问题(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3260809

C#调用VC的DLL参数是自定义类型指针的问题(ffb
http://community.csdn.net/Expert/TopicView.asp?id=3255959

C++的数据包结构分析,用了大量指针操作,我怎么转到C#中?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3260642

使用MemoryStream/序列化等方式如何实现合并两个byte[]?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3289022

如何高效的去除字符串末尾的\0 ?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3283632

结构中如何包含定长数组?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3268114

如何为unsafe的void*指针开辟指定大小的内存空间?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3261164

.net和Win32类型转换问题,这个结构为什么是16字节长?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3359087

一个整形是4个字节,怎样用C#得到这四个字节?(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3321271

如何把类型当作一个参数传递(ffb)
http://community.csdn.net/Expert/TopicView.asp?id=3300297

其他
http://community.csdn.net/Expert/TopicView.asp?id=3372469

我怎么写这个(datagrid中)linkbutton的click事件?
http://community.csdn.net/Expert/topic/3474/3474030.xml?temp=.755932

读取XM文件中的信息
http://community.csdn.net/Expert/topic/3407/3407705.xml?temp=.3329279

JS中如何判断对象的属性值是否存在
http://community.csdn.net/Expert/topic/3415/3415179.xml?temp=.4078791

如何在后台文件动态地增加页面panel
http://community.csdn.net/Expert/topic/3439/3439865.xml?temp=.8480646

不要标题栏,不要最大化最小化按钮,window.open的窗口always on top怎么弄?急用请助。在线等待!
http://community.csdn.net/Expert/topic/3446/3446972.xml?temp=.3335382

动态生成服务器控件(Button)并使用其click事件
http://community.csdn.net/Expert/topic/3469/3469677.xml?temp=.7751886

相应回车事件 ,当按钮在单行编辑控件上回车时,回车事件被转译成tab事件
http://community.csdn.net/Expert/topic/3482/3482135.xml?temp=6.840152E-02

如何把hex颜色转换成rgb格式
http://community.csdn.net/Expert/topic/3493/3493270.xml?temp=.2042047

收集实用功能和经典的javaScript代码
http://community.csdn.net/Expert/topic/3494/3494338.xml?temp=.4798395

DropDownList无刷新联动菜单,要求用XMLTHHP实现
http://community.csdn.net/Expert/topic/3495/3495124.xml?temp=1.939029E-02

如何在DataGrid中根据不同字段来显示不同数据
http://community.csdn.net/Expert/topic/3487/3487067.xml?temp=.9123346

在用户注册成功后,如何在2秒内自动转向首页
http://community.csdn.net/Expert/topic/3502/3502576.xml?temp=.6382868

看了大家的分页存储过程,一句话:不算优秀,算是作为我对.net版块的一点支持吧!效率极高,只有五句话的分页存储过程
http://community.csdn.net/Expert/topic/3292/3292678.xml?temp=8.622378E-02

有什么办法可以获得浏览者的MAC地址
http://community.csdn.net/Expert/topic/3503/3503946.xml?temp=.4505426

用ASP.net从SQL表生成EXEL文件
http://community.csdn.net/Expert/topic/3503/3503719.xml?temp=.8920709

如何在后台修改 样式表 文件?急,在线等
http://community.csdn.net/Expert/topic/3504/3504277.xml?temp=.8561212

ASP.NET中引用realplay one,实现视频
http://community.csdn.net/Expert/topic/3524/3524807.xml?temp=.1698419

刚刚整理好-汉字转拼音缩写的函数(C#)
在CSDN上找了一下,没有找一完整的转换函数,特在前人基础上整理了一下,接下来的项目中有可能用到。感谢bugfree(八个飞飞)。

        /// <summary>
        /// 汉字转拼音缩写
        /// Code By MuseStudio@hotmail.com
        /// 2004-11-30
        /// </summary>
        /// <param name="str">要转换的汉字字符串</param>
        /// <returns>拼音缩写</returns>
        public string GetPYString(string str)
        {
            string tempStr = "";
            foreach(char c in str)
            {
                if((int)c >= 33 && (int)c <=126)
                {//字母和符号原样保留
                    tempStr += c.ToString();
                }
                else
                {//累加拼音声母
                    tempStr += GetPYChar(c.ToString());
                }
            }
            return tempStr;
        }

        /// <summary>
        /// 取单个字符的拼音声母
        /// Code By MuseStudio@hotmail.com
        /// 2004-11-30
        /// </summary>
        /// <param name="c">要转换的单个汉字</param>
        /// <returns>拼音声母</returns>
        public string GetPYChar(string c)
        {
            byte[] array = new byte[2];
            array = System.Text.Encoding.Default.GetBytes(c);
            int i = (short)(array[0] - '\0') * 256 + ((short)(array[1] - '\0'));

            if ( i < 0xB0A1) return "*";
            if ( i < 0xB0C5) return "a";
            if ( i < 0xB2C1) return "b";
            if ( i < 0xB4EE) return "c";
            if ( i < 0xB6EA) return "d";
            if ( i < 0xB7A2) return "e";
            if ( i < 0xB8C1) return "f";
            if ( i < 0xB9FE) return "g";
            if ( i < 0xBBF7) return "h";
            if ( i < 0xBFA6) return "g";
            if ( i < 0xC0AC) return "k";
            if ( i < 0xC2E8) return "l";
            if ( i < 0xC4C3) return "m";
            if ( i < 0xC5B6) return "n";
            if ( i < 0xC5BE) return "o";
            if ( i < 0xC6DA) return "p";
            if ( i < 0xC8BB) return "q";
            if ( i < 0xC8F6) return "r";
            if ( i < 0xCBFA) return "s";
            if ( i < 0xCDDA) return "t";
            if ( i < 0xCEF4) return "w";
            if ( i < 0xD1B9) return "x";
            if ( i < 0xD4D1) return "y";
            if ( i < 0xD7FA) return "z";

            return "*";
        }

带滚动条的DATAGRID,刚做的,很简单,不过不大好看,望大家改改吧!
http://blog.csdn.net/rickjelly2004/archive/2004/12/14/215508.aspx

我的收藏夹共享出来:
http://www.h66.net/bookmark.htm

其实在这里也有:
http://blog.csdn.net/johnsuna

还有一个技术问题顺便向大家请教:http://211.159.67.108/ttmmpp/t.htm

另外发布一个超爽的简易图片浏览器:下载地址:http://www.qqaa.net/asbestsee.exe(C#写的)
类似ACDSEE的一些功能,可以自动播放图片,保存图片列表,旋转、转灰度图、黑白图、保存为另一种格式等。
选中图片和文件夹[可含子文件夹]的缩略图自动生成功能(可同时生成两种不同规格[一大一小]的缩略图)
需要自动缩略图的下载用用,非常方便。(个头只有76K)

即将增加的一些功能:
1、文件改名功能:我们经常在网上下载一些图片,存在文件重名问题,解决方式一般是另存为一个名称或者新建一个文件夹保存,时间长了,文件夹太多,不易分类保存。即将增加的功能可以:自动编号,随机文件名,改文件名、支持文件名正则表达式方式的替换。
2、水印图片(同样支持指定文件夹下的所有图片一次性生成)。水印图片可为文字,也可以为图片。此功能正在制作中。
3、网络图片自动下载功能(输入你的帐号、密码、可以指定下载页面,全自动收刮网络图片。)
可以指定图片大小、类型(比如是JPG,GIF,甚至FLASH动画)。

下载试用的朋友记得多给点意见哟。
征集最漂亮的验证码
http://community.csdn.net/Expert/topic/3451/3451248.xml?temp=.1554987

滚动条的样式
http://community.csdn.net/Expert/topic/3532/3532265.xml?temp=.4123957

求窗口最大化代码???不是满屏,而是相当于按了窗口右上角de最大化按钮那样的效果!!!
http://community.csdn.net/Expert/topic/3556/3556037.xml?temp=.6214411

一个日历控件里动态添加一个linkbutton控件
http://community.csdn.net/Expert/topic/3558/3558436.xml?temp=.5620539

必须用Embed 标记怎么写??
http://community.csdn.net/Expert/topic/3560/3560382.xml?temp=.3838922

怎么用findControl把DataGrid里的HeaderTemplate中的DropDownList的selectedvalue取出来
http://community.csdn.net/Expert/topic/3584/3584069.xml?temp=.2555353

收藏的电子书籍,有几G之多,有需要的朋友就下载吧
http://community.csdn.net/Expert/topic/3587/3587151.xml?temp=.8816339

如何在C#(WEB页面)中实现弹出一个保存对话框???(有原代码甚好
http://community.csdn.net/Expert/topic/3593/3593381.xml?temp=.5247614

请问怎么获得文件夹的属性呢。。。????
http://community.csdn.net/Expert/topic/3633/3633796.xml?temp=.5394098

一个很好的学习asp.net的资料
http://218.27.204.17/aspnet/a_user.aspx

使用验证控件进行验证后,如何获得焦点
http://community.csdn.net/Expert/topic/3749/3749268.xml?temp=.7708246

posted on 2006-08-02 11:03  gjcn  阅读(408)  评论(0编辑  收藏  举报

导航